mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -108,6 +108,7 @@ class ImageGridView extends StatelessWidget {
|
||||
PageUtils.imageView(
|
||||
initialPage: index,
|
||||
imgList: imgList,
|
||||
tag: hashCode.toString(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -255,7 +256,7 @@ class ImageGridView extends StatelessWidget {
|
||||
);
|
||||
if (!item.isLongPic) {
|
||||
child = Hero(
|
||||
tag: item.url,
|
||||
tag: '${item.url}$hashCode',
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ class GalleryViewer extends StatefulWidget {
|
||||
required this.sources,
|
||||
this.initIndex = 0,
|
||||
this.onPageChanged,
|
||||
this.tag = '',
|
||||
});
|
||||
|
||||
final double minScale;
|
||||
@@ -63,6 +64,7 @@ class GalleryViewer extends StatefulWidget {
|
||||
final List<SourceModel> sources;
|
||||
final int initIndex;
|
||||
final ValueChanged<int>? onPageChanged;
|
||||
final String tag;
|
||||
|
||||
@override
|
||||
State<GalleryViewer> createState() => _GalleryViewerState();
|
||||
@@ -472,7 +474,7 @@ class _GalleryViewerState extends State<GalleryViewer>
|
||||
: const SizedBox.shrink(),
|
||||
);
|
||||
}
|
||||
return Hero(tag: item.url, child: child);
|
||||
return Hero(tag: '${item.url}${widget.tag}', child: child);
|
||||
}
|
||||
|
||||
void _onTap() {
|
||||
|
||||
Reference in New Issue
Block a user