back button on auth

This commit is contained in:
2025-09-11 14:24:10 +02:00
parent 44ffd894a2
commit 7179f61df9

View File

@@ -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)) {