Another one fix for authentication bar disapearing. Changed build version to 20 for android, 4.0.8 (3) for iOS.

This commit is contained in:
M
2020-11-17 14:31:09 +02:00
parent ce465ca622
commit 1afe4255a7
4 changed files with 15 additions and 10 deletions
+9 -6
View File
@@ -39,12 +39,15 @@ class AuthPageState extends State<AuthPage> {
_reaction ??=
reaction((_) => widget.authViewModel.state, (ExecutionState state) {
if (state is ExecutedSuccessfullyState) {
_authBar?.dismiss();
if (widget.onAuthenticationFinished != null) {
widget.onAuthenticationFinished(true, this);
} else {
showBar<void>(context, S.of(context).authenticated);
}
WidgetsBinding.instance.addPostFrameCallback((_) {
_authBar?.dismiss();
if (widget.onAuthenticationFinished != null) {
widget.onAuthenticationFinished(true, this);
} else {
showBar<void>(context, S.of(context).authenticated);
}
});
setState(() {});
}
if (state is IsExecutingState) {
+2
View File
@@ -110,6 +110,8 @@ abstract class AuthViewModelBase with Store {
if (isAuthenticated) {
state = ExecutedSuccessfullyState();
} else {
state = FailureState('Failure biometric authentication');
}
}
} catch(e) {