show member collection top

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-10 18:21:36 +08:00
parent 9fef3284db
commit b8098fe067
9 changed files with 446 additions and 77 deletions

View File

@@ -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