v0.17.3
flutter_web_browser
一個 Flutter 插件專案,用於使用 Chrome 自訂標籤頁與 SFSafariViewController 開啟網頁。
95喜歡 1.8萬近 30 天下載130Pub 分數
AndroidiOS
用於 Flutter 的外掛程式,可透過 Chrome 自訂標籤頁和 SFSafariViewController 開啟網頁
{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A flutter plugin to open a web page with Chrome Custom Tabs & SFSafariViewController.
This plugin is under development, APIs might change.
Install the library from pub:
dependencies:
flutter_web_browser: "^0.17.3"
import 'package:flutter_web_browser/flutter_web_browser.dart';
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,
),
);
This project is licensed under the terms of the MIT license.