mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 08:06:21 +08:00
@@ -43,14 +43,17 @@ class PageUtils {
|
||||
ValueChanged<int>? onDismissed,
|
||||
int? quality,
|
||||
}) {
|
||||
bool isMemberPage = Get.currentRoute.startsWith('/member?');
|
||||
final currentRoute = Get.currentRoute;
|
||||
bool noneSet =
|
||||
currentRoute.startsWith('/videoV') ||
|
||||
currentRoute.startsWith('/member?');
|
||||
return Navigator.of(Get.context!).push(
|
||||
HeroDialogRoute(
|
||||
builder: (context) => InteractiveviewerGallery(
|
||||
sources: imgList,
|
||||
initIndex: initialPage,
|
||||
onDismissed: onDismissed,
|
||||
setStatusBar: !isMemberPage,
|
||||
setStatusBar: !noneSet,
|
||||
quality: quality ?? GlobalData().imgQuality,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user