diff --git a/lib/pages/video/detail/controller.dart b/lib/pages/video/detail/controller.dart index 7073a55a..669ca618 100644 --- a/lib/pages/video/detail/controller.dart +++ b/lib/pages/video/detail/controller.dart @@ -883,19 +883,27 @@ class VideoDetailController extends GetxController ).animate(animation), child: Padding( padding: const EdgeInsets.only(top: 5), - child: SearchText( - bgColor: Theme.of(Get.context!) - .colorScheme - .secondaryContainer - .withOpacity(0.8), - textColor: Theme.of(Get.context!).colorScheme.onSecondaryContainer, - padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), - fontSize: 14, - text: '跳过: ${item.segmentType.shortTitle}', - onTap: (_) { - onSkip(item); - onRemoveItem(listData.indexOf(item), item); + child: GestureDetector( + onHorizontalDragUpdate: (DragUpdateDetails details) { + if (details.delta.dx < 0) { + onRemoveItem(listData.indexOf(item), item); + } }, + child: SearchText( + bgColor: Theme.of(Get.context!) + .colorScheme + .secondaryContainer + .withOpacity(0.8), + textColor: + Theme.of(Get.context!).colorScheme.onSecondaryContainer, + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + fontSize: 14, + text: '跳过: ${item.segmentType.shortTitle}', + onTap: (_) { + onSkip(item); + onRemoveItem(listData.indexOf(item), item); + }, + ), ), ), ), diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index c8b971ac..eacc8add 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -1348,11 +1348,13 @@ class _VideoDetailPageState extends State ], if (videoDetailController.enableSponsorBlock) - Align( - alignment: Alignment(-0.9, 0.5), + Positioned( + left: 16, + bottom: isFullScreen ? max(75, Get.height * 0.25) : 75, child: SizedBox( width: MediaQuery.textScalerOf(context).scale(120), child: AnimatedList( + padding: EdgeInsets.zero, key: videoDetailController.listKey, reverse: true, shrinkWrap: true,