mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt gesture
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -84,13 +84,11 @@ class ChatItem extends StatelessWidget {
|
||||
textColor: textColor,
|
||||
)
|
||||
: GestureDetector(
|
||||
onLongPress: onLongPress != null && Utils.isMobile
|
||||
? () {
|
||||
Feedback.forLongPress(context);
|
||||
onLongPress!();
|
||||
}
|
||||
: null,
|
||||
onSecondaryTap: !Utils.isMobile ? onLongPress : null,
|
||||
onLongPress: () {
|
||||
Feedback.forLongPress(context);
|
||||
onLongPress!();
|
||||
},
|
||||
onSecondaryTap: Utils.isMobile ? null : onLongPress,
|
||||
child: Row(
|
||||
mainAxisAlignment: isOwner
|
||||
? MainAxisAlignment.end
|
||||
|
||||
Reference in New Issue
Block a user