File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class VerificationCode extends StatefulWidget {
22
22
23
23
/// the color for underline when not focused, grey by default
24
24
final Color ? underlineUnfocusedColor;
25
+
26
+ /// the color for TextField background
27
+ final Color ? fillColor;
25
28
26
29
/// the line width for underline
27
30
final double ? underlineWidth;
@@ -46,6 +49,7 @@ class VerificationCode extends StatefulWidget {
46
49
this .itemSize = 50 ,
47
50
this .underlineColor,
48
51
this .underlineUnfocusedColor,
52
+ this .fillColor,
49
53
this .underlineWidth,
50
54
this .textStyle = const TextStyle (fontSize: 25.0 ),
51
55
this .autofocus = false ,
@@ -101,6 +105,7 @@ class _VerificationCodeState extends State<VerificationCode> {
101
105
autofocus: widget.autofocus,
102
106
style: widget.textStyle,
103
107
decoration: InputDecoration (
108
+ fillColor: widget.fillColor,
104
109
enabledBorder: UnderlineInputBorder (
105
110
borderSide: BorderSide (
106
111
color: widget.underlineUnfocusedColor ?? Colors .grey,
You can’t perform that action at this time.
0 commit comments