image scale

This commit is contained in:
quantulr
2023-02-12 23:39:41 +08:00
parent b2e52d0539
commit 9261d482cf
7 changed files with 110 additions and 52 deletions

View File

@ -27,10 +27,8 @@ class MyMaterialRouterConfig {
GoRoute(
path: "/",
name: "相册",
pageBuilder: (BuildContext context, GoRouterState state) =>
const NoTransitionPage(
child: Gallery(),
),
builder: (BuildContext context, GoRouterState state) =>
const Gallery(),
redirect: (BuildContext context, GoRouterState state) {
if (token == null || token.isEmpty) {
return '/login';
@ -47,8 +45,8 @@ class MyMaterialRouterConfig {
GoRoute(
path: "/profile",
name: "个人资料",
pageBuilder: (BuildContext context, GoRouterState state) =>
const NoTransitionPage(child: Profile())),
builder: (BuildContext context, GoRouterState state) =>
const Profile()),
],
),
GoRoute(