|
|
|
@ -42,6 +42,10 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
AuthProvider authProv;
|
|
|
|
|
bool _isInit = true;
|
|
|
|
|
var model;
|
|
|
|
|
TextEditingController digit1 = TextEditingController(text: "");
|
|
|
|
|
TextEditingController digit2 = TextEditingController(text: "");
|
|
|
|
|
TextEditingController digit3 = TextEditingController(text: "");
|
|
|
|
|
TextEditingController digit4 = TextEditingController(text: "");
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
@ -103,6 +107,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
|
autofocus: true,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
controller: digit1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
keyboardType: TextInputType.number,
|
|
|
|
|
decoration: buildInputDecoration(context),
|
|
|
|
@ -126,6 +131,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD2,
|
|
|
|
|
controller: digit2,
|
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
@ -153,6 +159,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD3,
|
|
|
|
|
controller: digit3,
|
|
|
|
|
textInputAction: TextInputAction.next,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
@ -179,6 +186,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
width: SizeConfig.realScreenWidth * 0.20,
|
|
|
|
|
child: TextFormField(
|
|
|
|
|
focusNode: focusD4,
|
|
|
|
|
controller: digit4,
|
|
|
|
|
maxLength: 1,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
style: buildTextStyle(),
|
|
|
|
@ -246,6 +254,7 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
if (value.isEmpty) {
|
|
|
|
|
return 'Please enter your Password';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -334,8 +343,9 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
verifyAccountFormValue['digit2'] +
|
|
|
|
|
verifyAccountFormValue['digit3'] +
|
|
|
|
|
verifyAccountFormValue['digit4'];
|
|
|
|
|
print(activationCode);
|
|
|
|
|
|
|
|
|
|
int projectID = await sharedPref.getInt(PROJECT_ID);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> model = {
|
|
|
|
|
"activationCode": activationCode,
|
|
|
|
|
"DoctorID": _loggedUser['DoctorID'],
|
|
|
|
@ -353,7 +363,6 @@ class _VerifyAccountState extends State<VerifyAccount> {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
authProv.memberCheckActivationCodeNew(model).then((res) {
|
|
|
|
|
// changeLoadingStata(false);
|
|
|
|
|
if (res['MessageStatus'] == 1) {
|
|
|
|
|
sharedPref.setString(TOKEN, res['AuthenticationTokenID']);
|
|
|
|
|
if (res['List_DoctorProfile'] != null) {
|
|
|
|
|