mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
17 lines
415 B
Dart
17 lines
415 B
Dart
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;
|
|
}
|
|
}
|
|
}
|