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});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) => SelectionArea(
|
||||
child: HtmlWidget(
|
||||
Widget build(BuildContext context, WidgetRef ref) => HtmlWidget(
|
||||
html,
|
||||
textStyle: textStyle,
|
||||
customWidgetBuilder: (element) {
|
||||
|
|
@ -150,6 +149,5 @@ class Html extends ConsumerWidget {
|
|||
},
|
||||
onTapUrl: (url) =>
|
||||
ref.watch(LaunchHelper.provider).launchUrl(Uri.parse(url)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue