opt gesture

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-29 16:14:34 +08:00
parent 19f7720fb2
commit be03909fdc
18 changed files with 43 additions and 61 deletions

View File

@@ -66,7 +66,7 @@ class DynamicPanel extends StatelessWidget {
}.contains(item.type)
? null
: () => PageUtils.pushDynDetail(item),
onLongPress: Utils.isMobile ? showMore : null,
onLongPress: showMore,
onSecondaryTap: Utils.isMobile ? null : showMore,
child: Column(
mainAxisSize: MainAxisSize.min,

View File

@@ -99,7 +99,7 @@ Widget forwardPanel(
return InkWell(
onTap: () => PageUtils.pushDynDetail(orig),
onLongPress: Utils.isMobile ? showMore : null,
onLongPress: showMore,
onSecondaryTap: Utils.isMobile ? null : showMore,
child: child,
);

View File

@@ -48,7 +48,7 @@ class _UpPanelState extends State<UpPanel> {
onTap: () => setState(() {
controller.showLiveUp = !controller.showLiveUp;
}),
onLongPress: Utils.isMobile ? toFollowPage : null,
onLongPress: toFollowPage,
onSecondaryTap: Utils.isMobile ? null : toFollowPage,
child: Container(
alignment: Alignment.center,
@@ -161,7 +161,7 @@ class _UpPanelState extends State<UpPanel> {
}
},
// onDoubleTap: isLive ? () => _onSelect(data) : null,
onLongPress: !isAll && Utils.isMobile ? toMemberPage : null,
onLongPress: !isAll ? toMemberPage : null,
onSecondaryTap: !isAll && !Utils.isMobile ? toMemberPage : null,
child: AnimatedOpacity(
opacity: isCurrent ? 1 : 0.6,