自习室优化ok
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:app/router/modules/student_routes.dart';
|
||||
import 'package:app/router/modules/teacher_routes.dart';
|
||||
import 'package:app/router/route_paths.dart';
|
||||
import 'package:app/router/router_config.dart';
|
||||
import 'package:flutter/material.dart' hide RouterConfig;
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
List<RouterConfig> routeConfigs = [
|
||||
@@ -21,8 +22,12 @@ List<RouteBase> routes = routeConfigs.map((item) {
|
||||
);
|
||||
}).toList();
|
||||
|
||||
GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
|
||||
//变量命名
|
||||
GoRouter goRouter = GoRouter(
|
||||
navigatorKey: navigatorKey,
|
||||
initialLocation: RoutePaths.splash,
|
||||
routes: routes,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user