Resolves #109 No static width for inputs

This commit is contained in:
estevez
2018-10-02 23:21:50 +03:00
parent 8a0d5581d9
commit 648750655c
3 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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(

View File

@ -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,