Resolves #109 No static width for inputs
This commit is contained in:
@ -17,8 +17,8 @@ class _SelectEntityWidgetState extends _EntityWidgetState {
|
|||||||
_listOptions.add(value.toString());
|
_listOptions.add(value.toString());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return Container(
|
return Expanded(
|
||||||
width: Entity.INPUT_WIDTH,
|
//width: Entity.INPUT_WIDTH,
|
||||||
child: DropdownButton<String>(
|
child: DropdownButton<String>(
|
||||||
value: widget.entity.state,
|
value: widget.entity.state,
|
||||||
items: this._listOptions.map((String value) {
|
items: this._listOptions.map((String value) {
|
||||||
|
@ -26,8 +26,8 @@ class _SliderEntityWidgetState extends _EntityWidgetState {
|
|||||||
} else if (valueStep < 0.1) {
|
} else if (valueStep < 0.1) {
|
||||||
_multiplier = 100;
|
_multiplier = 100;
|
||||||
}
|
}
|
||||||
return Container(
|
return Expanded(
|
||||||
width: 200.0,
|
//width: 200.0,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -53,8 +53,8 @@ class _TextEntityWidgetState extends _EntityWidgetState {
|
|||||||
_tmpValue = widget.entity.state;
|
_tmpValue = widget.entity.state;
|
||||||
}
|
}
|
||||||
if (this.isTextField || this.isPasswordField) {
|
if (this.isTextField || this.isPasswordField) {
|
||||||
return Container(
|
return Expanded(
|
||||||
width: Entity.INPUT_WIDTH,
|
//width: Entity.INPUT_WIDTH,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
obscureText: this.isPasswordField,
|
obscureText: this.isPasswordField,
|
||||||
|
Reference in New Issue
Block a user