Skip to content

Commit 8675e33

Browse files
committed
chore: closes wilburx9#47
1 parent a1dea54 commit 8675e33

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

lib/src/widgets/input/otp_field.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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)),

lib/src/widgets/input/pin_field.dart

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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)),

lib/src/widgets/otp_widget.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)