image detail
This commit is contained in:
@ -12,7 +12,7 @@ class MyMaterialRouterConfig {
|
||||
final GlobalKey<NavigatorState> _rootNavigatorKey =
|
||||
GlobalKey<NavigatorState>();
|
||||
|
||||
MyMaterialRouterConfig(String? token, UniqueKey uniqueKey) {
|
||||
MyMaterialRouterConfig(String? token) {
|
||||
router = GoRouter(
|
||||
navigatorKey: _rootNavigatorKey,
|
||||
initialLocation: "/",
|
||||
@ -41,9 +41,8 @@ class MyMaterialRouterConfig {
|
||||
GoRoute(
|
||||
path: "detail",
|
||||
name: "图片详情",
|
||||
pageBuilder:
|
||||
(BuildContext context, GoRouterState state) =>
|
||||
const NoTransitionPage(child: ImageDetail())),
|
||||
builder: (BuildContext context, GoRouterState state) =>
|
||||
const ImageDetail())
|
||||
]),
|
||||
GoRoute(
|
||||
path: "/profile",
|
||||
|
Reference in New Issue
Block a user