This commit is contained in:
2024-11-30 21:36:23 +08:00
parent 2f4927f719
commit 30b2aa2f99
4 changed files with 85 additions and 11 deletions

View File

@@ -829,6 +829,7 @@ class ComicList extends StatefulWidget {
this.trailingSliver,
this.errorLeading,
this.menuBuilder,
this.controller,
});
final Future<Res<List<Comic>>> Function(int page)? loadPage;
@@ -843,6 +844,8 @@ class ComicList extends StatefulWidget {
final List<MenuEntry> Function(Comic)? menuBuilder;
final ScrollController? controller;
@override
State<ComicList> createState() => ComicListState();
}
@@ -1064,6 +1067,7 @@ class ComicListState extends State<ComicList> {
);
}
return SmoothCustomScrollView(
controller: widget.controller,
slivers: [
if (widget.leadingSliver != null) widget.leadingSliver!,
if (_maxPage != 1) _buildSliverPageSelector(),