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());
});
}
return Container(
width: Entity.INPUT_WIDTH,
return Expanded(
//width: Entity.INPUT_WIDTH,
child: DropdownButton<String>(
value: widget.entity.state,
items: this._listOptions.map((String value) {

View File

@ -26,8 +26,8 @@ class _SliderEntityWidgetState extends _EntityWidgetState {
} else if (valueStep < 0.1) {
_multiplier = 100;
}
return Container(
width: 200.0,
return Expanded(
//width: 200.0,
child: Row(
children: <Widget>[
Expanded(

View File

@ -53,8 +53,8 @@ class _TextEntityWidgetState extends _EntityWidgetState {
_tmpValue = widget.entity.state;
}
if (this.isTextField || this.isPasswordField) {
return Container(
width: Entity.INPUT_WIDTH,
return Expanded(
//width: Entity.INPUT_WIDTH,
child: TextField(
focusNode: _focusNode,
obscureText: this.isPasswordField,