A flutter plugin to open a web page with Chrome Custom Tabs & SFSafariViewController.
This plugin is under development, APIs might change.
nstall the library from pub:
dependencies:
flutter_web_browser: "^0.12.0"
import 'package:flutter_web_browser/flutter_web_browser.dart';
FlutterWebBrowser.openWebPage(
url: "https://flutter.io/",
androidToolbarColor: Colors.deepPurple,
safariVCOptions: SafariViewControllerOptions(
barCollapsingEnabled: true,
preferredBarTintColor: Colors.green,
preferredControlTintColor: Colors.amber,
dismissButtonStyle: SafariViewControllerDismissButtonStyle.close,
modalPresentationCapturesStatusBarAppearance: true,
),
);
This project is licensed under the terms of the MIT license.