chore: Minor code clean up

This commit is contained in:
Krille 2023-05-15 18:55:27 +02:00
commit cb0fe173d9
7 changed files with 24 additions and 12 deletions

View file

@ -278,7 +278,10 @@ class StoryView extends StatelessWidget {
? L10n.of(context)!.loadingPleaseWait
: event.content.tryGet<String>('body') ?? '',
textAlign: TextAlign.center,
onLinkTap: (url) => UrlLauncher(context, url).launchUrl(),
beforeLaunch: (url) {
UrlLauncher(context, url.toString()).launchUrl();
return false;
},
linkStyle: TextStyle(
fontSize: 24,
color: Colors.blue.shade50,