kustasoft_web_browser 1.0.3
kustasoft_web_browser: ^1.0.3 copied to clipboard
A new Flutter plugin for opening web browser in Android and iOS. This plugin is based on the Flutter plugin template.
kustasoft_web_browser #
A flutter plugin to open a web page with Chrome Custom Tabs & SFSafariViewController.
This plugin is under development, APIs might change.
Getting Started #
Installation
Install the library from pub:
dependencies:
kustasoft_web_browser: "^0.0.2"
Import the library
import 'package:kustasoft_web_browser/kustasoft_web_browser.dart';
Open the web page
KustasoftWebBrowser.openWebPage(
url: "https://flutter.io/",
customTabsOptions: const CustomTabsOptions(
colorScheme: CustomTabsColorScheme.dark,
toolbarColor: Colors.deepPurple,
secondaryToolbarColor: Colors.green,
navigationBarColor: Colors.amber,
shareState: CustomTabsShareState.on,
instantAppsEnabled: true,
showTitle: true,
urlBarHidingEnabled: true,
),
safariVCOptions: const SafariViewControllerOptions(
barCollapsingEnabled: true,
preferredBarTintColor: Colors.green,
preferredControlTintColor: Colors.amber,
dismissButtonStyle: SafariViewControllerDismissButtonStyle.close,
modalPresentationCapturesStatusBarAppearance: true,
),
);
License #
This project is licensed under the terms of the MIT license.