ES-185:fix resend opt

master
Elham Rababah 5 years ago
parent 7cd74cbda5
commit 45927ed8f1

@ -13,6 +13,7 @@ class AuthenticationViewModel with ChangeNotifier {
AuthenticationService _authenticationService =
locator<AuthenticationService>();
AuthenticatedUser user;
int get userId => _authenticationService.userID;
bool isLogin = false;
bool isLoading = false;
bool isError = false;

@ -356,6 +356,11 @@ class VerificationPage extends StatelessWidget {
ForgetPasswordPage()),
);
},
child: InkWell(
onTap: () async {
await authenticationViewModel
.getOpt(authenticationViewModel.userId);
},
child: Text(
"Resend OPT?",
style: TextStyle(
@ -363,6 +368,7 @@ class VerificationPage extends StatelessWidget {
color: Theme.of(context).primaryColor),
),
),
),
],
),
],

Loading…
Cancel
Save