mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -82,7 +82,7 @@ class _FavSearchPageState extends State<FavSearchPage> {
|
|||||||
),
|
),
|
||||||
delegate: SliverChildBuilderDelegate(
|
delegate: SliverChildBuilderDelegate(
|
||||||
(context, index) {
|
(context, index) {
|
||||||
if (index == loadingState.response.length) {
|
if (index == loadingState.response.length - 1) {
|
||||||
_favSearchCtr.onLoadMore();
|
_favSearchCtr.onLoadMore();
|
||||||
}
|
}
|
||||||
final element = loadingState.response[index];
|
final element = loadingState.response[index];
|
||||||
@@ -126,6 +126,9 @@ class _FavSearchPageState extends State<FavSearchPage> {
|
|||||||
controller: _favSearchCtr.scrollController,
|
controller: _favSearchCtr.scrollController,
|
||||||
itemCount: loadingState.response.length,
|
itemCount: loadingState.response.length,
|
||||||
itemBuilder: ((context, index) {
|
itemBuilder: ((context, index) {
|
||||||
|
if (index == loadingState.response.length - 1) {
|
||||||
|
_favSearchCtr.onLoadMore();
|
||||||
|
}
|
||||||
return FollowItem(
|
return FollowItem(
|
||||||
item: loadingState.response[index],
|
item: loadingState.response[index],
|
||||||
);
|
);
|
||||||
@@ -143,6 +146,9 @@ class _FavSearchPageState extends State<FavSearchPage> {
|
|||||||
),
|
),
|
||||||
delegate: SliverChildBuilderDelegate(
|
delegate: SliverChildBuilderDelegate(
|
||||||
(context, index) {
|
(context, index) {
|
||||||
|
if (index == loadingState.response.length - 1) {
|
||||||
|
_favSearchCtr.onLoadMore();
|
||||||
|
}
|
||||||
return HistoryItem(
|
return HistoryItem(
|
||||||
videoItem: loadingState.response[index],
|
videoItem: loadingState.response[index],
|
||||||
ctr: _favSearchCtr,
|
ctr: _favSearchCtr,
|
||||||
|
|||||||
Reference in New Issue
Block a user