Don't make message text selectable as it breaks long press context menus

This commit is contained in:
Henry Hiles 2026-04-01 22:27:18 -04:00
commit bb842abfb1
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -21,8 +21,7 @@ class Html extends ConsumerWidget {
const Html(this.html, {this.textStyle, super.key}); const Html(this.html, {this.textStyle, super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) => SelectionArea( Widget build(BuildContext context, WidgetRef ref) => HtmlWidget(
child: HtmlWidget(
html, html,
textStyle: textStyle, textStyle: textStyle,
customWidgetBuilder: (element) { customWidgetBuilder: (element) {
@ -150,6 +149,5 @@ class Html extends ConsumerWidget {
}, },
onTapUrl: (url) => onTapUrl: (url) =>
ref.watch(LaunchHelper.provider).launchUrl(Uri.parse(url)), ref.watch(LaunchHelper.provider).launchUrl(Uri.parse(url)),
),
); );
} }