diff --git a/lib/src/widgets/embeds/video_app.dart b/lib/src/widgets/embeds/video_app.dart index 9a842d48..d9b2f3c0 100644 --- a/lib/src/widgets/embeds/video_app.dart +++ b/lib/src/widgets/embeds/video_app.dart @@ -50,7 +50,7 @@ class _VideoAppState extends State { text: widget.videoUrl, style: defaultStyles.link, recognizer: TapGestureRecognizer() - ..onTap = () => launch(widget.videoUrl)), + ..onTap = () => launchUrl(Uri.parse(widget.videoUrl))), ); } diff --git a/lib/src/widgets/embeds/youtube_video_app.dart b/lib/src/widgets/embeds/youtube_video_app.dart index 1c8ea5bc..c8e5b29f 100644 --- a/lib/src/widgets/embeds/youtube_video_app.dart +++ b/lib/src/widgets/embeds/youtube_video_app.dart @@ -44,7 +44,7 @@ class _YoutubeVideoAppState extends State { text: widget.videoUrl, style: defaultStyles.link, recognizer: TapGestureRecognizer() - ..onTap = () => launch(widget.videoUrl)), + ..onTap = () => launchUrl(Uri.parse(widget.videoUrl))), ); } diff --git a/lib/src/widgets/text_line.dart b/lib/src/widgets/text_line.dart index d27fa19b..43f42e86 100644 --- a/lib/src/widgets/text_line.dart +++ b/lib/src/widgets/text_line.dart @@ -394,7 +394,7 @@ class _TextLineState extends State { } Future _launchUrl(String url) async { - await launch(url); + await launchUrl(Uri.parse(url)); } void _tapNodeLink(Node node) { diff --git a/pubspec.yaml b/pubspec.yaml index 3b27db73..4d899fdf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: quiver: ^3.0.0 string_validator: ^0.3.0 tuple: ^2.0.0 - url_launcher: ^6.0.2 + url_launcher: ^6.1.0 pedantic: ^1.11.0 video_player: ^2.1.10 characters: ^1.1.0