flutter_web_browser 0.14.0 copy "flutter_web_browser: ^0.14.0" to clipboard
flutter_web_browser: ^0.14.0 copied to clipboard

outdated

A flutter plugin project to open a web page with Chrome Custom Tabs & SFSafariViewController.

flutter_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:
  flutter_web_browser: "^0.14.0"

Import the library

import 'package:flutter_web_browser/flutter_web_browser.dart';
Open the web page
FlutterWebBrowser.openWebPage(
  url: "https://flutter.io/",
  customTabsOptions: CustomTabsOptions(
    colorScheme: CustomTabsColorScheme.dark,
    toolbarColor: Colors.deepPurple,
    secondaryToolbarColor: Colors.green,
    navigationBarColor: Colors.amber,
    addDefaultShareMenuItem: true,
    instantAppsEnabled: true,
    showTitle: true,
    urlBarHidingEnabled: true,
  ),
  safariVCOptions: 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.

89
likes
0
pub points
97%
popularity

Publisher

unverified uploader

A flutter plugin project to open a web page with Chrome Custom Tabs & SFSafariViewController.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_web_browser