TF-1862: Add ADR for ticket about how to use Draggable on the web

(cherry picked from commit 8e4f767625ee12a3290223beec5cdfc4cf141b9c)
This commit is contained in:
HuyNguyen
2023-05-25 10:08:10 +07:00
committed by Dat Vu
parent 3e86f5dfec
commit de341d4ffe
2 changed files with 50 additions and 4 deletions
@@ -360,10 +360,7 @@ class ThreadView extends GetWidget<ThreadController>
Widget _buildEmailItemDraggable(BuildContext context, PresentationEmail presentationEmail) {
return GestureDetector(
behavior: HitTestBehavior.translucent,
onSecondaryTapDown: (details) {
// 1. Use empty callback to disable D&D on mouse right button
// 2. Call `showMenu` to show context menu
},
onSecondaryTapDown: (_) {},
child: Draggable<List<PresentationEmail>>(
data: controller.listEmailDrag,
feedback: _buildFeedBackWidget(context),