Settings
This commit is contained in:
parent
112b4a65c6
commit
ebe90a515c
|
|
@ -95,12 +95,21 @@ class _FormColorPickerState extends State<FormColorPicker> {
|
||||||
labelText: widget.labelText,
|
labelText: widget.labelText,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
children: <Widget>[
|
||||||
|
Container(
|
||||||
|
color: convertHexStringToColor(widget.initialValue),
|
||||||
|
width: 100,
|
||||||
|
height: 20,
|
||||||
|
),
|
||||||
|
SizedBox(width: 20),
|
||||||
if (_selectedColor == null)
|
if (_selectedColor == null)
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.color_lens),
|
icon: Icon(Icons.color_lens),
|
||||||
onPressed: _showPicker,
|
onPressed: _showPicker,
|
||||||
),
|
)
|
||||||
if (_selectedColor != null)
|
else
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.clear),
|
icon: Icon(Icons.clear),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
@ -112,6 +121,8 @@ class _FormColorPickerState extends State<FormColorPicker> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue