fix: medialist: del btn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-16 18:44:32 +08:00
parent b99cf4f629
commit bddeb72d9b
4 changed files with 7 additions and 4 deletions

View File

@@ -415,7 +415,8 @@ class VideoDetailController extends GetxController
getMediaList(isLoadPrevious: true);
}
: null,
onDelete: ['watchLater', 'fav'].contains(sourceType)
onDelete: sourceType == 'watchLater' ||
(sourceType == 'fav' && Get.arguments?['isOwner'] == true)
? (index) async {
if (sourceType == 'watchLater') {
var res = await UserHttp.toViewDel(

View File

@@ -121,6 +121,7 @@ class _MediaListPanelState extends CommonSlidePageState<MediaListPanel> {
widget.onDelete != null && widget.mediaList.length > 1;
return ScrollablePositionedList.builder(
itemScrollController: _scrollController,
physics: const AlwaysScrollableScrollPhysics(),
itemCount: widget.mediaList.length,
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 80,