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 = AuthenticationService _authenticationService =
locator<AuthenticationService>(); locator<AuthenticationService>();
AuthenticatedUser user; AuthenticatedUser user;
int get userId => _authenticationService.userID;
bool isLogin = false; bool isLogin = false;
bool isLoading = false; bool isLoading = false;
bool isError = false; bool isError = false;

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

Loading…
Cancel
Save