Don't make message text selectable as it breaks long press context menus
This commit is contained in:
parent
0b9ddbfbc8
commit
bb842abfb1
1 changed files with 117 additions and 119 deletions
|
|
@ -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)),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue