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 {
99 style: TextStyle (
1010 fontWeight: FontWeight .bold,
1111 color: Colors .black87,
12- fontSize: 25.0 ,
13- letterSpacing: 15.0 ,
12+ fontSize: 25.0
1413 ),
1514 autofocus: true ,
1615 inputFormatters: [
@@ -23,8 +22,9 @@ class OtpField extends TextFormField {
2322 decoration: new InputDecoration (
2423 border: OutlineInputBorder (),
2524 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 ),
2828 contentPadding: const EdgeInsets .all (10.0 ),
2929 enabledBorder: OutlineInputBorder (
3030 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> {
1515 @override
1616 Widget build (BuildContext context) {
1717 return Container (
18- width : 150.0 ,
18+ margin : EdgeInsets . symmetric (horizontal : 10 ) ,
1919 child: new TextField (
2020 keyboardType: TextInputType .number,
2121 textAlign: TextAlign .center,
@@ -34,8 +34,12 @@ class _PinFieldState extends State<PinField> {
3434 decoration: new InputDecoration (
3535 border: OutlineInputBorder (),
3636 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+ ),
3943 contentPadding: const EdgeInsets .all (10.0 ),
4044 enabledBorder: const OutlineInputBorder (
4145 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> {
5252 ),
5353 ),
5454 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+ ),
5861 ),
5962 heightBox,
6063 new AccentButton (
You can’t perform that action at this time.
0 commit comments