From 6747495ea8b1ac099881db46fd93a734d71ee5ec Mon Sep 17 00:00:00 2001 From: Mohammad ALjammal Date: Wed, 17 Jun 2020 12:03:45 +0300 Subject: [PATCH] fix issues in login --- lib/widgets/auth/login_form.dart | 9 +++------ lib/widgets/auth/verfiy_account.dart | 3 --- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/widgets/auth/login_form.dart b/lib/widgets/auth/login_form.dart index 17b5520d..6e6b306d 100644 --- a/lib/widgets/auth/login_form.dart +++ b/lib/widgets/auth/login_form.dart @@ -50,17 +50,18 @@ class _LoginFormState extends State { Channel: 9, SessionID: "i1UJwCTSqt"); + AuthProvider authProv; @override void initState() { super.initState(); initPlatformState(); - - } @override void didChangeDependencies() { super.didChangeDependencies(); + authProv = Provider.of(context); + if (_isInit) { if (projectsList.length == 0) { getProjectsList(); @@ -72,10 +73,6 @@ class _LoginFormState extends State { @override Widget build(BuildContext context) { - - - AuthProvider authProv = Provider.of(context); - return Form( key: loginFormKey, child: Container( diff --git a/lib/widgets/auth/verfiy_account.dart b/lib/widgets/auth/verfiy_account.dart index 7da036d3..a801fec9 100644 --- a/lib/widgets/auth/verfiy_account.dart +++ b/lib/widgets/auth/verfiy_account.dart @@ -349,7 +349,6 @@ class _VerifyAccountState extends State { "IsLoginForDoctorApp": true, "IsSilentLogIN": false }; - changeLoadingStata(true); authProv.memberCheckActivationCodeNew(model).then((res) { // changeLoadingStata(false); @@ -371,8 +370,6 @@ class _VerifyAccountState extends State { changeLoadingStata(false); helpers.showErrorToast(err); }); - } else { - // changeLoadingStata(false); } }