use extended_image
This commit is contained in:
@ -27,8 +27,8 @@ class MyMaterialRouterConfig {
|
||||
GoRoute(
|
||||
path: "/",
|
||||
name: "相册",
|
||||
builder: (BuildContext context, GoRouterState state) =>
|
||||
const Gallery(),
|
||||
pageBuilder: (BuildContext context, GoRouterState state) =>
|
||||
const NoTransitionPage(child: Gallery()),
|
||||
redirect: (BuildContext context, GoRouterState state) {
|
||||
if (token == null || token.isEmpty) {
|
||||
return '/login';
|
||||
@ -45,8 +45,8 @@ class MyMaterialRouterConfig {
|
||||
GoRoute(
|
||||
path: "/profile",
|
||||
name: "个人资料",
|
||||
builder: (BuildContext context, GoRouterState state) =>
|
||||
const Profile()),
|
||||
pageBuilder: (BuildContext context, GoRouterState state) =>
|
||||
const NoTransitionPage(child: Profile())),
|
||||
],
|
||||
),
|
||||
GoRoute(
|
||||
|
Reference in New Issue
Block a user