mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video: skip panel
Closes #104 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -883,19 +883,27 @@ class VideoDetailController extends GetxController
|
|||||||
).animate(animation),
|
).animate(animation),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: 5),
|
padding: const EdgeInsets.only(top: 5),
|
||||||
child: SearchText(
|
child: GestureDetector(
|
||||||
bgColor: Theme.of(Get.context!)
|
onHorizontalDragUpdate: (DragUpdateDetails details) {
|
||||||
.colorScheme
|
if (details.delta.dx < 0) {
|
||||||
.secondaryContainer
|
onRemoveItem(listData.indexOf(item), item);
|
||||||
.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: 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);
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1348,11 +1348,13 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
],
|
],
|
||||||
|
|
||||||
if (videoDetailController.enableSponsorBlock)
|
if (videoDetailController.enableSponsorBlock)
|
||||||
Align(
|
Positioned(
|
||||||
alignment: Alignment(-0.9, 0.5),
|
left: 16,
|
||||||
|
bottom: isFullScreen ? max(75, Get.height * 0.25) : 75,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: MediaQuery.textScalerOf(context).scale(120),
|
width: MediaQuery.textScalerOf(context).scale(120),
|
||||||
child: AnimatedList(
|
child: AnimatedList(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
key: videoDetailController.listKey,
|
key: videoDetailController.listKey,
|
||||||
reverse: true,
|
reverse: true,
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user