mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
show member collection top
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -54,6 +54,7 @@ class GalleryViewer extends StatefulWidget {
|
||||
required this.quality,
|
||||
required this.sources,
|
||||
this.initIndex = 0,
|
||||
this.onPageChanged,
|
||||
});
|
||||
|
||||
final double minScale;
|
||||
@@ -61,6 +62,7 @@ class GalleryViewer extends StatefulWidget {
|
||||
final int quality;
|
||||
final List<SourceModel> sources;
|
||||
final int initIndex;
|
||||
final ValueChanged<int>? onPageChanged;
|
||||
|
||||
@override
|
||||
State<GalleryViewer> createState() => _GalleryViewerState();
|
||||
@@ -346,6 +348,7 @@ class _GalleryViewerState extends State<GalleryViewer>
|
||||
_player?.pause();
|
||||
_playIfNeeded(widget.sources[index]);
|
||||
_currIndex.value = index;
|
||||
widget.onPageChanged?.call(index);
|
||||
}
|
||||
|
||||
late final ValueChanged<int>? _onChangePage = widget.sources.length == 1
|
||||
|
||||
Reference in New Issue
Block a user