mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
opt gesture
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -13,6 +13,7 @@ import 'package:PiliPlus/models_new/later/list.dart';
|
||||
import 'package:PiliPlus/pages/later/controller.dart';
|
||||
import 'package:PiliPlus/utils/duration_utils.dart';
|
||||
import 'package:PiliPlus/utils/page_utils.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
|
||||
@@ -41,14 +42,18 @@ class VideoCardHLater extends StatelessWidget {
|
||||
}
|
||||
final theme = Theme.of(context);
|
||||
final enableMultiSelect = ctr.enableMultiSelect.value;
|
||||
|
||||
final onLongPress = enableMultiSelect
|
||||
? null
|
||||
: () => ctr
|
||||
..enableMultiSelect.value = true
|
||||
..onSelect(videoItem);
|
||||
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: InkWell(
|
||||
onLongPress: enableMultiSelect
|
||||
? null
|
||||
: () => ctr
|
||||
..enableMultiSelect.value = true
|
||||
..onSelect(videoItem),
|
||||
onLongPress: onLongPress,
|
||||
onSecondaryTap: Utils.isMobile ? null : onLongPress,
|
||||
onTap: enableMultiSelect
|
||||
? () => ctr.onSelect(videoItem)
|
||||
: () async {
|
||||
|
||||
Reference in New Issue
Block a user