FLUTTER ECOSYSTEM

victorbonnet/flutter_web_browser

Plugin para o flutter para abrir página web com Chrome Custom Tabs e SFSafariViewController

Capa do projeto flutter_web_browser
Stars
66
Forks
52
Último push (UTC)
15 de mar. de 2025
Status do projeto
Ativo
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
LinguagensDartObjective-CJavaRuby

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 1 itens
  • flutter{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

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.