Add onSecondaryTap to MeshCard and fix right-click on message text bubbles
This commit is contained in:
1 parent
f1478722b0
commit
f34c2a92c3
3 files changed
+15
-18
No files matched your search
@@ -50,6 +50,7 @@ class MeshCard extends StatelessWidget {
|
||||
final Widget child;
|
||||
final VoidCallback? onTap;
|
||||
final VoidCallback? onLongPress;
|
||||
final VoidCallback? onSecondaryTap;
|
||||
final EdgeInsetsGeometry padding;
|
||||
final EdgeInsetsGeometry margin;
|
||||
final Color? color;
|
||||
@@ -61,6 +62,7 @@ class MeshCard extends StatelessWidget {
|
||||
required this.child,
|
||||
this.onTap,
|
||||
this.onLongPress,
|
||||
this.onSecondaryTap,
|
||||
this.padding = const EdgeInsets.all(14),
|
||||
this.margin = const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
this.color,
|
||||
@@ -89,6 +91,7 @@ class MeshCard extends StatelessWidget {
|
||||
HapticFeedback.selectionClick();
|
||||
onLongPress!();
|
||||
},
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
child: Padding(padding: padding, child: child),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user