This commit is contained in:
cxc
2023-02-10 17:33:51 +08:00
parent bd259d8303
commit 5f5f2554eb
10 changed files with 100 additions and 38 deletions

View File

@ -8,10 +8,11 @@ import 'package:momo/material/profile.dart';
class MyMaterialRouterConfig {
late GoRouter router;
final GlobalKey<NavigatorState> _rootNavigatorKey =
GlobalKey<NavigatorState>();
MyMaterialRouterConfig(String? token) {
MyMaterialRouterConfig(String? token, UniqueKey uniqueKey) {
router = GoRouter(
navigatorKey: _rootNavigatorKey,
initialLocation: "/",