add html support
This commit is contained in:
parent
ec48e3ae96
commit
8d3c657ff6
6 changed files with 58 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue