mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-19 00:45:33 +10:00
Fix for right-click on message bubbles (right click didn't work on the actual text of the bubble)
This commit is contained in:
@@ -8,6 +8,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
final TextStyle style;
|
||||
final TextStyle? originalStyle;
|
||||
final bool showOriginalFirst;
|
||||
final VoidCallback? onSecondaryTap;
|
||||
|
||||
const TranslatedMessageContent({
|
||||
super.key,
|
||||
@@ -16,6 +17,7 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
this.originalText,
|
||||
this.originalStyle,
|
||||
this.showOriginalFirst = true,
|
||||
this.onSecondaryTap,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -36,12 +38,14 @@ class TranslatedMessageContent extends StatelessWidget {
|
||||
fontStyle: FontStyle.italic,
|
||||
fontSize: style.fontSize,
|
||||
),
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
)
|
||||
: null;
|
||||
final translatedWidget = LinkHandler.buildLinkifyText(
|
||||
context: context,
|
||||
text: trimmedDisplay,
|
||||
style: style,
|
||||
onSecondaryTap: onSecondaryTap,
|
||||
);
|
||||
|
||||
if (!shouldShowOriginal) {
|
||||
|
||||
Reference in New Issue
Block a user