add others

This commit is contained in:
jyuesong
2022-01-17 16:42:46 +08:00
parent 105d6172b6
commit ad141e4bd1
18 changed files with 291 additions and 128 deletions

View 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;
}
}
}