use extended_image

This commit is contained in:
quantulr
2023-02-13 00:36:25 +08:00
parent 9261d482cf
commit cdd930d523
5 changed files with 89 additions and 116 deletions

View File

@ -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(