|
|
|
@ -114,7 +114,7 @@ class SMSOTP {
|
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
|
autofocus: true,
|
|
|
|
|
// maxLength: 1,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
controller: digit1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
@ -141,7 +141,7 @@ class SMSOTP {
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD2,
|
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
|
// maxLength: 1,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
controller: digit2,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
@ -168,7 +168,7 @@ class SMSOTP {
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD3,
|
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
|
// maxLength: 1,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
controller: digit3,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
@ -194,7 +194,7 @@ class SMSOTP {
|
|
|
|
|
width: SizeConfig.realScreenWidth * 0.15,
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD4,
|
|
|
|
|
// maxLength: 1,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
|
controller: digit4,
|
|
|
|
@ -242,8 +242,9 @@ class SMSOTP {
|
|
|
|
|
|
|
|
|
|
InputDecoration buildInputDecoration(BuildContext context) {
|
|
|
|
|
return InputDecoration(
|
|
|
|
|
counterText: " ",
|
|
|
|
|
// ts/images/password_icon.png
|
|
|
|
|
contentPadding: EdgeInsets.only(top: 20, bottom: 20),
|
|
|
|
|
// contentPadding: EdgeInsets.only(top: 20, bottom: 20),
|
|
|
|
|
enabledBorder: OutlineInputBorder(
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10)),
|
|
|
|
|
borderSide: BorderSide(color: Colors.black),
|
|
|
|
|