mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add others
This commit is contained in:
16
lib/utils/QlNavigatorObserver.dart
Normal file
16
lib/utils/QlNavigatorObserver.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:qinglong_app/base/routes.dart';
|
||||
|
||||
class QlNavigatorObserver extends NavigatorObserver {
|
||||
bool isInLoginPage = false;
|
||||
|
||||
@override
|
||||
void didPush(Route route, Route? previousRoute) {
|
||||
super.didPush(route, previousRoute);
|
||||
if (Routes.route_LOGIN == route.settings.name) {
|
||||
isInLoginPage = true;
|
||||
} else {
|
||||
isInLoginPage = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user