File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ class FormBuilderImagePicker extends StatefulWidget {
12
12
final InputDecoration decoration;
13
13
final ValueTransformer valueTransformer;
14
14
final ValueChanged onChanged;
15
+ final FormFieldSetter onSaved;
15
16
16
17
final double imageWidth;
17
18
final double imageHeight;
18
19
final EdgeInsets imageMargin;
19
- final FormFieldSetter onSaved ;
20
+ final Color iconColor ;
20
21
21
22
const FormBuilderImagePicker ({
22
23
Key key,
@@ -32,6 +33,7 @@ class FormBuilderImagePicker extends StatefulWidget {
32
33
this .readOnly = false ,
33
34
this .onSaved,
34
35
this .decoration = const InputDecoration (),
36
+ this .iconColor,
35
37
}) : super (key: key);
36
38
37
39
@override
@@ -131,10 +133,10 @@ class _FormBuilderImagePickerState extends State<FormBuilderImagePicker> {
131
133
child: Icon (Icons .camera_enhance,
132
134
color: _readOnly
133
135
? Theme .of (context).disabledColor
134
- : Theme .of (context).primaryColor),
136
+ : widget.iconColor ?? Theme .of (context).primaryColor),
135
137
color: (_readOnly
136
138
? Theme .of (context).disabledColor
137
- : Theme .of (context).primaryColor)
139
+ : widget.iconColor ?? Theme .of (context).primaryColor)
138
140
.withAlpha (50 )),
139
141
onTap: _readOnly
140
142
? null
You can’t perform that action at this time.
0 commit comments