back button on auth
This commit is contained in:
parent
44ffd894a2
commit
7179f61df9
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ class _MihPackageState extends State<MihPackage>
|
|||
child: PopScope(
|
||||
canPop: false,
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) {
|
||||
if (GoRouterState.of(context).name == 'mihHome') {
|
||||
if (GoRouterState.of(context).name == 'mihHome' ||
|
||||
GoRouterState.of(context).name == 'mihAuthentication') {
|
||||
if (lastPressedAt == null ||
|
||||
DateTime.now().difference(lastPressedAt!) >
|
||||
const Duration(seconds: 2)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue