mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: search page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -45,7 +45,7 @@ abstract class CommonSearchPageState<S extends CommonSearchPage, R, T>
|
||||
},
|
||||
),
|
||||
),
|
||||
onSubmitted: (value) => controller.onReload(),
|
||||
onSubmitted: (value) => controller.onRefresh(),
|
||||
),
|
||||
),
|
||||
body: Obx(() => _buildBody(controller.loadingState.value)),
|
||||
|
||||
@@ -37,6 +37,7 @@ class _FavSearchPageState extends CommonSearchPageState<FavSearchPage,
|
||||
sliver: SliverGrid(
|
||||
gridDelegate: Grid.videoCardHDelegate(context, minHeight: 110),
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
childCount: list.length,
|
||||
(context, index) {
|
||||
if (index == list.length - 1) {
|
||||
controller.onLoadMore();
|
||||
|
||||
@@ -36,6 +36,7 @@ class _HistorySearchPageState
|
||||
sliver: SliverGrid(
|
||||
gridDelegate: Grid.videoCardHDelegate(context, minHeight: 110),
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
childCount: list.length,
|
||||
(context, index) {
|
||||
if (index == list.length - 1) {
|
||||
controller.onLoadMore();
|
||||
|
||||
@@ -39,6 +39,7 @@ class _LaterSearchPageState
|
||||
sliver: SliverGrid(
|
||||
gridDelegate: Grid.videoCardHDelegate(context, minHeight: 110),
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
childCount: list.length,
|
||||
(context, index) {
|
||||
if (index == list.length - 1) {
|
||||
controller.onLoadMore();
|
||||
|
||||
Reference in New Issue
Block a user