kustasoft_web_browser 1.0.3 copy "kustasoft_web_browser: ^1.0.3" to clipboard
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 #

Pub

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.

2
likes
160
points
29
downloads

Publisher

verified publisherkustasoft.com

Weekly Downloads

A new Flutter plugin for opening web browser in Android and iOS. This plugin is based on the Flutter plugin template.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on kustasoft_web_browser