Skip to content

https://github.com/flutter/plugins/tree/master/packages/webview_flutter webview_flutter 0.3.14+1 扩展,部分功能官方不支持,需要自己实现,目前支持Android add consoleMessageDelegate

License

Notifications You must be signed in to change notification settings

bineanzhou/webview_flutter_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebView for Flutter (Developers Preview)

pub package

A Flutter plugin that provides a WebView widget.

  • support consoleMessageDelegate
  • support jsAlert

添加依赖库:

dependencies:
  webview_flutter:
    git: https://github.com/bineanzhou/webview_flutter_ext.git

On iOS the WebView widget is backed by a WKWebView; On Android the WebView widget is backed by a WebView.

Developers Preview Status

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.

Known issues are tagged with the platform-views and/or webview labels.

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 io.flutter.embedded_views_preview and the value YES.

Keyboard support within webviews is also experimental. The above tags also surface known issues with keyboard input. Some currently known keyboard issues, as of webview_flutter version 0.3.10+4:

Setup

iOS

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

Usage

Add webview_flutter as a dependency in your pubspec.yaml file.

You can now include a WebView widget in your widget tree. See the WebView widget's Dartdoc for more details on how to use the widget.

About

https://github.com/flutter/plugins/tree/master/packages/webview_flutter webview_flutter 0.3.14+1 扩展,部分功能官方不支持,需要自己实现,目前支持Android add consoleMessageDelegate

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published