Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

refactor(image preview): change heroTag type from String? to Object? (#2043)

LiggMaxca662884e804
diff --git a/lib/bean/widget/image_preview.dart b/lib/bean/widget/image_preview.dart
index 1a173660..dcdeef6c 100644
--- a/lib/bean/widget/image_preview.dart
+++ b/lib/bean/widget/image_preview.dart
@@ -8,20 +8,20 @@ class ImageViewerRouteArgs {
const ImageViewerRouteArgs({required this.imageUrl, this.heroTag});
final String imageUrl;
- final String? heroTag;
+ final Object? heroTag;
}
class ImageViewer extends StatefulWidget {
static const String routePath = '/image-preview';
final String imageUrl;
- final String? heroTag;
+ final Object? heroTag;
const ImageViewer({super.key, required this.imageUrl, this.heroTag});
/// 显示图片预览
static Future<void> show(BuildContext context,
- {required String imageUrl, String? heroTag}) async {
+ {required String imageUrl, Object? heroTag}) async {
final effectiveHeroTag = heroTag ?? imageUrl;
await Modular.to.pushNamed(
routePath,