flutter_web_browser
0.17.3, released 2 years ago by an unverified publisher
A flutter plugin to open a web page with Chrome Custom Tabs and SFSafariViewController.
What it does
It allows Flutter applications to open web pages using native browser components such as Chrome Custom Tabs on Android and SFSafariViewController on iOS. It offers various configuration options for UI customization like colors, bar collapsing, and share states.
AI-written summary of version 0.17.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to open external web links inside your app using native browser tabs rather than launching a full external browser or a heavy webview.
- You need to customize the appearance of Chrome Custom Tabs or Safari View Controller on mobile platforms.
Skip it when
- You need an in-app embedded WebView widget to render custom HTML or interact heavily with web content inside your widget tree.
- You are targeting non-mobile platforms where Chrome Custom Tabs and SFSafariViewController are not supported.
Strengths
- Provides a seamless native browsing experience on Android and iOS.
- Supports rich customization options for both Android and iOS browser views.
- Includes features like warm-up APIs and event handling for Safari redirect and close.
Weaknesses
- APIs might change as the plugin is under development.
- Limited to specific native browser implementations on Android and iOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Install the library from pub and import it in your Dart code.
FlutterWebBrowser.openWebPage(
url: "https://flutter.io/",
customTabsOptions: const CustomTabsOptions(
colorScheme: CustomTabsColorScheme.dark,
toolbarColor: Colors.deepPurple,
),
);Alternatives
Packages that do the same job and could replace flutter_web_browser.
- open_store
Simple lightweight package to open store page for android and iOS GooglePlay and AppStore
50Compare - updater
Check for custom in-app updates and download APKs on Android.
49Compare - system_settings
Opens system and app settings pages on iOS and Android.
43Compare