add html support

This commit is contained in:
Henry Hiles 2025-11-14 22:05:35 -05:00
commit 8d3c657ff6
No known key found for this signature in database
6 changed files with 58 additions and 55 deletions

View file

@ -6,16 +6,16 @@ class LaunchHelper {
final Ref ref;
LaunchHelper(this.ref);
Future<void> launchUrl(Uri url, {bool useWebview = false}) async {
Future<bool> launchUrl(Uri url, {bool useWebview = false}) async {
try {
await ul.launchUrl(
return await ul.launchUrl(
url,
mode: useWebview
? ul.LaunchMode.inAppBrowserView
: ul.LaunchMode.externalApplication,
);
} on PlatformException catch (_) {
// Ignore missing intent handler error
return false;
}
}