File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,6 @@ lib/generated_plugin_registrant.dart
42
42
43
43
# Generated documentattion
44
44
doc /
45
+
46
+ # FVM
47
+ .fvm /
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class MyHomePageState extends State<MyHomePage> {
108
108
FormBuilderColorPicker (
109
109
attribute: 'color_picker' ,
110
110
// initialValue: Colors.yellow,
111
- colorPickerType: ColorPickerType .SlidePicker ,
111
+ colorPickerType: ColorPickerType .BlockPicker ,
112
112
decoration: const InputDecoration (labelText: 'Pick Color' ),
113
113
),
114
114
SizedBox (height: 15 ),
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ class _FormBuilderColorPickerState extends State<FormBuilderColorPicker> {
157
157
autovalidate: widget.autovalidate ?? false ,
158
158
builder: (FormFieldState <Color > field) {
159
159
_effectiveController.text = HexColor (field.value)? .toHex ();
160
+ final defaultBorderColor = Colors .grey;
160
161
161
162
return TextField (
162
163
style: widget.style,
@@ -174,9 +175,7 @@ class _FormBuilderColorPickerState extends State<FormBuilderColorPicker> {
174
175
borderRadius: BorderRadius .all (
175
176
Radius .circular (constraints.minHeight / 2 ),
176
177
),
177
- border: Border .all (
178
- color: Colors .black,
179
- ),
178
+ border: Border .all (color: field.value ?? defaultBorderColor),
180
179
),
181
180
);
182
181
},
You can’t perform that action at this time.
0 commit comments