mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix gallery's title can not display correct on chrome/firefox
This commit is contained in:
@@ -59,9 +59,13 @@ final _router = GoRouter(
|
||||
}),
|
||||
GoRoute(
|
||||
path: GalleryPage.routeName,
|
||||
builder: (context, state) => GalleryPage(
|
||||
int.parse(state.pathParameters["gid"]!),
|
||||
),
|
||||
builder: (context, state) {
|
||||
final extra = state.extra as GalleryPageExtra?;
|
||||
return GalleryPage(
|
||||
int.parse(state.pathParameters["gid"]!),
|
||||
title: extra?.title,
|
||||
);
|
||||
},
|
||||
redirect: (context, state) {
|
||||
try {
|
||||
int.parse(state.pathParameters["gid"]!);
|
||||
|
||||
Reference in New Issue
Block a user