diff --git a/lib/url_launcher.dart b/lib/url_launcher.dart index c4841c0..513e811 100644 --- a/lib/url_launcher.dart +++ b/lib/url_launcher.dart @@ -8,7 +8,7 @@ import 'pages/instance.dart'; import 'pages/user.dart'; import 'stores/accounts_store.dart'; -Future urlLauncher({ +Future linkLauncher({ @required BuildContext context, @required String url, @required String instanceUrl, diff --git a/lib/widgets/markdown_text.dart b/lib/widgets/markdown_text.dart index 427294e..e0062ba 100644 --- a/lib/widgets/markdown_text.dart +++ b/lib/widgets/markdown_text.dart @@ -16,7 +16,7 @@ class MarkdownText extends StatelessWidget { data: text, extensionSet: md.ExtensionSet.gitHubWeb, onTapLink: (href) { - urlLauncher(context: context, url: href, instanceUrl: instanceUrl) + linkLauncher(context: context, url: href, instanceUrl: instanceUrl) .catchError((e) => Scaffold.of(context).showSnackBar(SnackBar( content: Row( children: [ diff --git a/lib/widgets/post.dart b/lib/widgets/post.dart index 64c1935..4ffcd96 100644 --- a/lib/widgets/post.dart +++ b/lib/widgets/post.dart @@ -145,7 +145,7 @@ class Post extends StatelessWidget { Widget build(BuildContext context) { final theme = Theme.of(context); void _openLink() => - urlLauncher(context: context, url: post.url, instanceUrl: instanceUrl); + linkLauncher(context: context, url: post.url, instanceUrl: instanceUrl); final urlDomain = () { if (post.url == null) return null;