File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ class OtpField extends TextFormField {
9
9
style: TextStyle (
10
10
fontWeight: FontWeight .bold,
11
11
color: Colors .black87,
12
- fontSize: 25.0 ,
13
- letterSpacing: 15.0 ,
12
+ fontSize: 25.0
14
13
),
15
14
autofocus: true ,
16
15
inputFormatters: [
@@ -23,8 +22,9 @@ class OtpField extends TextFormField {
23
22
decoration: new InputDecoration (
24
23
border: OutlineInputBorder (),
25
24
isDense: true ,
26
- hintText: 'OTP' ,
27
- hintStyle: const TextStyle (color: Colors .grey, fontSize: 14.0 ),
25
+ hintText: 'ENTER' ,
26
+ hintStyle: const TextStyle (
27
+ color: Colors .grey, fontSize: 14.0 ),
28
28
contentPadding: const EdgeInsets .all (10.0 ),
29
29
enabledBorder: OutlineInputBorder (
30
30
borderSide: const BorderSide (color: Colors .grey, width: 0.5 )),
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class _PinFieldState extends State<PinField> {
15
15
@override
16
16
Widget build (BuildContext context) {
17
17
return Container (
18
- width : 150.0 ,
18
+ margin : EdgeInsets . symmetric (horizontal : 10 ) ,
19
19
child: new TextField (
20
20
keyboardType: TextInputType .number,
21
21
textAlign: TextAlign .center,
@@ -34,8 +34,12 @@ class _PinFieldState extends State<PinField> {
34
34
decoration: new InputDecoration (
35
35
border: OutlineInputBorder (),
36
36
isDense: true ,
37
- hintText: 'PIN' ,
38
- hintStyle: const TextStyle (color: Colors .grey, fontSize: 14.0 ),
37
+ hintText: 'ENTER PIN' ,
38
+ hintStyle: const TextStyle (
39
+ color: Colors .grey,
40
+ fontSize: 14.0 ,
41
+ letterSpacing: 0 ,
42
+ ),
39
43
contentPadding: const EdgeInsets .all (10.0 ),
40
44
enabledBorder: const OutlineInputBorder (
41
45
borderSide: const BorderSide (color: Colors .grey, width: 0.5 )),
Original file line number Diff line number Diff line change @@ -52,9 +52,12 @@ class _OtpWidgetState extends BaseState<OtpWidget> {
52
52
),
53
53
),
54
54
heightBox,
55
- new OtpField (
56
- onSaved: (String value) => _otp = value,
57
- borderColor: Theme .of (context).accentColor,
55
+ Padding (
56
+ padding: EdgeInsets .symmetric (horizontal: 10 ),
57
+ child: new OtpField (
58
+ onSaved: (String value) => _otp = value,
59
+ borderColor: Theme .of (context).accentColor,
60
+ ),
58
61
),
59
62
heightBox,
60
63
new AccentButton (
You can’t perform that action at this time.
0 commit comments