A Flutter plugin that provides a Bridge WebView widget which can communicate with js.
The plugin relies on Flutter's new mechanism for embedding Android and iOS views. As that mechanism is currently in a developers preview, this plugin should also be considered a developers preview.
To use this plugin on iOS you need to opt-in for the embedded views preview by
adding a boolean property to the app's
Info.plist file, with the key
and the value
Opt-in to the embedded views preview by adding a boolean property to the app's
with the key
io.flutter.embedded_views_preview and the value
flutter_js_bridge as a dependency in your pubspec.yaml file.
You can now include a BridgeWebView widget in your widget tree. See the WebView widget's Dartdoc for more details on how to use the widget.
Demonstrates how to use the flutter_js_bridge plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: flutter_bridge_webview: ^0.1.40
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/flutter_bridge_webview.dart. (-1.49 points)
lib/flutter_bridge_webview.dart reported 3 hints:
line 200 col 45: Avoid using braces in interpolation when not needed.
line 208 col 56: Avoid using braces in interpolation when not needed.
line 208 col 77: Avoid using braces in interpolation when not needed.
flutter format to format
Homepage URL isn't helpful. (-10 points)
homepage field from
pubspec.yaml: link to a website about the package or use the source repository URL.
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.