FLUTTER ECOSYSTEM

victorbonnet/flutter_web_browser

Plugin für Flutter, um Webseiten mit Chrome Custom Tabs und SFSafariViewController zu öffnen

Projektcover von flutter_web_browser
Stars
66
Forks
52
Letzter Push (UTC)
15.03.2025
Projektstatus
Aktiv
Victor Bonnet GitHub avatar
GITHUB User

Victor Bonnet ↗

Staff Engineer · AI Research Lead · Builder I'm a builder first. Started shipping mobile apps in 2011, got acquired in 2012, never stopped building since.

NexthinkLausanne
SprachenDartObjective-CJavaRuby

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 1 Einträge
  • flutter{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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.17.3"
Import the library
import 'package:flutter_web_browser/flutter_web_browser.dart';
Open the web page
FlutterWebBrowser.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.