opt: playall

Closes #450

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-16 17:28:51 +08:00
parent b07cf62bdd
commit b99cf4f629
7 changed files with 106 additions and 39 deletions

View File

@@ -85,17 +85,34 @@ class _FavSearchPageState extends State<FavSearchPage> {
if (index == loadingState.response.length) {
_favSearchCtr.onLoadMore();
}
final element = loadingState.response[index];
return FavVideoCardH(
videoItem: loadingState.response[index],
videoItem: element,
searchType: _favSearchCtr.type,
callFn: _favSearchCtr.type != 1
? () {
_favSearchCtr.onCancelFav(
loadingState.response[index].id!,
loadingState.response[index].type,
element.id!,
element.type,
);
}
: null,
onViewFav: () {
Utils.toViewPage(
'bvid=${element.bvid}&cid=${element.cid}',
arguments: {
'videoItem': element,
'heroTag': Utils.makeHeroTag(element.bvid),
'sourceType': 'fav',
'mediaId': Get.arguments['mediaId'],
'oid': element.id,
'favTitle': Get.arguments['title'],
'count': Get.arguments['count'],
'desc': true,
'isContinuePlaying': true,
},
);
},
);
},
childCount: loadingState.response.length,