mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
CAKE-312 | wrapped unlock page by WillPopScope; fixed biometricAuth() in the auth_view_model.dart
This commit is contained in:
parent
d23228ac01
commit
bbe75451a4
2 changed files with 5 additions and 5 deletions
|
@ -237,9 +237,11 @@ Route<dynamic> createRoute(RouteSettings settings) {
|
||||||
case Routes.unlock:
|
case Routes.unlock:
|
||||||
return MaterialPageRoute<void>(
|
return MaterialPageRoute<void>(
|
||||||
fullscreenDialog: true,
|
fullscreenDialog: true,
|
||||||
builder: (_) => getIt.get<AuthPage>(
|
builder: (_) => WillPopScope(
|
||||||
param1: settings.arguments as OnAuthenticationFinished,
|
child: getIt.get<AuthPage>(
|
||||||
param2: false));
|
param1: settings.arguments as OnAuthenticationFinished,
|
||||||
|
param2: false),
|
||||||
|
onWillPop: () async => false));
|
||||||
|
|
||||||
case Routes.nodeList:
|
case Routes.nodeList:
|
||||||
return CupertinoPageRoute<void>(
|
return CupertinoPageRoute<void>(
|
||||||
|
|
|
@ -110,8 +110,6 @@ abstract class AuthViewModelBase with Store {
|
||||||
|
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
state = ExecutedSuccessfullyState();
|
state = ExecutedSuccessfullyState();
|
||||||
} else {
|
|
||||||
state = FailureState('Failure biometric authentication');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in a new issue