|
|
|
@ -21,7 +21,9 @@ Helpers helpers = Helpers();
|
|
|
|
|
|
|
|
|
|
|
|
class VerifyAccount extends StatefulWidget {
|
|
|
|
class VerifyAccount extends StatefulWidget {
|
|
|
|
VerifyAccount({this.changeLoadingStata});
|
|
|
|
VerifyAccount({this.changeLoadingStata});
|
|
|
|
|
|
|
|
|
|
|
|
final Function changeLoadingStata;
|
|
|
|
final Function changeLoadingStata;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
_VerifyAccountState createState() => _VerifyAccountState();
|
|
|
|
_VerifyAccountState createState() => _VerifyAccountState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -37,8 +39,9 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
Future _loggedUserFuture;
|
|
|
|
Future _loggedUserFuture;
|
|
|
|
var _loggedUser;
|
|
|
|
var _loggedUser;
|
|
|
|
AuthProvider authProv;
|
|
|
|
AuthProvider authProv;
|
|
|
|
bool _isInit =true;
|
|
|
|
bool _isInit = true;
|
|
|
|
var model;
|
|
|
|
var model;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
super.initState();
|
|
|
|
@ -93,25 +96,30 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
MainAxisAlignment.spaceAround,
|
|
|
|
MainAxisAlignment.spaceAround,
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
style: buildTextStyle(),
|
|
|
|
style: buildTextStyle(),
|
|
|
|
maxLength: 1,
|
|
|
|
maxLength: 1,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
decoration:
|
|
|
|
decoration: buildInputDecoration(context),
|
|
|
|
buildInputDecoration(context),
|
|
|
|
onSaved: (val) {
|
|
|
|
onSaved: (val) {
|
|
|
|
verifyAccountFormValue['digit1'] = val;
|
|
|
|
verifyAccountFormValue['digit1'] =
|
|
|
|
},
|
|
|
|
val;
|
|
|
|
validator: validateCodeDigit,
|
|
|
|
},
|
|
|
|
onFieldSubmitted: (_) {
|
|
|
|
validator: validateCodeDigit,
|
|
|
|
FocusScope.of(context)
|
|
|
|
onFieldSubmitted: (_) {
|
|
|
|
.requestFocus(focusD2);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onChanged: (val) {
|
|
|
|
|
|
|
|
if (val.length == 1) {
|
|
|
|
FocusScope.of(context)
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(focusD2);
|
|
|
|
.requestFocus(focusD2);
|
|
|
|
},
|
|
|
|
}
|
|
|
|
)),
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
child: TextFormField(
|
|
|
|
child: TextFormField(
|
|
|
|
@ -131,6 +139,12 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
FocusScope.of(context)
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(focusD3);
|
|
|
|
.requestFocus(focusD3);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onChanged: (val) {
|
|
|
|
|
|
|
|
if (val.length == 1) {
|
|
|
|
|
|
|
|
FocusScope.of(context)
|
|
|
|
|
|
|
|
.requestFocus(focusD3);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
validator: validateCodeDigit),
|
|
|
|
validator: validateCodeDigit),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
@ -152,6 +166,12 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
FocusScope.of(context)
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(focusD4);
|
|
|
|
.requestFocus(focusD4);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
onChanged: (val) {
|
|
|
|
|
|
|
|
if (val.length == 1) {
|
|
|
|
|
|
|
|
FocusScope.of(context)
|
|
|
|
|
|
|
|
.requestFocus(focusD4);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
validator: validateCodeDigit)),
|
|
|
|
validator: validateCodeDigit)),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
|