refactor: Remove copy dialog before opening links
This can now be done by just selecting text
This commit is contained in:
parent
59de9d299d
commit
e6e3589f1f
2 changed files with 16 additions and 34 deletions
|
|
@ -141,7 +141,11 @@ class HtmlMessage extends StatelessWidget {
|
|||
const ImageExtension(),
|
||||
FontColorExtension(),
|
||||
],
|
||||
onLinkTap: (url, _, __) => UrlLauncher(context, url).launchUrl(),
|
||||
onLinkTap: (url, _, element) => UrlLauncher(
|
||||
context,
|
||||
url,
|
||||
element?.text,
|
||||
).launchUrl(),
|
||||
onlyRenderTheseTags: const {
|
||||
...allowedHtmlTags,
|
||||
// Needed to make it work properly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue