|
|
|
|
@ -85,9 +85,7 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
|
setState(() {
|
|
|
|
|
loading = false;
|
|
|
|
|
});
|
|
|
|
|
if (isValid && _settingProvider.isLocalAuthEnable) {
|
|
|
|
|
handleLocalAuth();
|
|
|
|
|
} else {
|
|
|
|
|
if (isValid == false) {
|
|
|
|
|
showDialog(
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (BuildContext cxt) => SingleBtnDialog(
|
|
|
|
|
@ -99,6 +97,12 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
|
Navigator.of(context).pushNamedAndRemoveUntil(LoginPage.routeName, (routes) => true);
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
} else {
|
|
|
|
|
if (isValid && _settingProvider.isLocalAuthEnable) {
|
|
|
|
|
handleLocalAuth();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
Navigator.of(context).pushNamedAndRemoveUntil(LoginPage.routeName, (routes) => true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|