TF-3766 Show context menu when long press menu item on web mobile
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -200,12 +200,10 @@ abstract class BaseMailboxView extends GetWidget<MailboxController>
|
||||
)
|
||||
: null,
|
||||
onSelectMailboxFolderClick: controller.selectMailboxNode,
|
||||
onLongPressMailboxNodeAction: PlatformInfo.isMobile
|
||||
? (mailboxNode) => controller.handleLongPressMailboxNodeAction(
|
||||
context,
|
||||
mailboxNode.item,
|
||||
)
|
||||
: null,
|
||||
onLongPressMailboxNodeAction: (mailboxNode) => controller.handleLongPressMailboxNodeAction(
|
||||
context,
|
||||
mailboxNode.item,
|
||||
),
|
||||
onDragItemAccepted: PlatformInfo.isMobile
|
||||
? null
|
||||
: controller.handleDragItemAccepted,
|
||||
|
||||
@@ -124,6 +124,9 @@ class _MailboxItemWidgetState extends State<MailboxItemWidget> {
|
||||
child: InkWell(
|
||||
key: _key,
|
||||
onTap: () => widget.onOpenMailboxFolderClick?.call(widget.mailboxNode),
|
||||
onLongPress: !PlatformInfo.isCanvasKit
|
||||
? () => widget.onLongPressMailboxNodeAction?.call(widget.mailboxNode)
|
||||
: null,
|
||||
onHover: (value) => setState(() => _isItemHovered = value),
|
||||
borderRadius: const BorderRadius.all(
|
||||
Radius.circular(MailboxItemWidgetStyles.borderRadius),
|
||||
|
||||
Reference in New Issue
Block a user