当前位置: 首页 > 软件库 > 手机/移动开发 > >

flutter_inappwebview

授权协议 Apache-2.0 License
开发语言 Java
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 鲜于河
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Flutter InAppWebView Plugin

InAppWebView-logo

A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.

Articles/Resources

Showcase - Who use it

Check the Showcase page to see an open list of Apps built with Flutter and Flutter InAppWebView.

Are you using the Flutter InAppWebView plugin and would you like to add your App there?

Send a submission request to the Submit App page!

Requirements

  • Dart sdk: ">=2.12.0-0 <3.0.0"
  • Flutter: ">=1.22.2"
  • Android: minSdkVersion 17 and add support for androidx (see AndroidX Migration to migrate an existing app)
  • iOS: --ios-language swift, Xcode version >= 12

Installation

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

Main Classes Overview

  • InAppWebView: Flutter Widget for adding an inline native WebView integrated into the flutter widget tree.
  • ContextMenu: This class represents the WebView context menu.
  • HeadlessInAppWebView: Class that represents a WebView in headless mode. It can be used to run a WebView in background without attaching an InAppWebView to the widget tree.
  • InAppBrowser: In-App Browser using native WebView.
  • ChromeSafariBrowser: In-App Browser using Chrome Custom Tabs on Android / SFSafariViewController on iOS.
  • InAppLocalhostServer: This class allows you to create a simple server on http://localhost:[port]/. The default port value is 8080.
  • CookieManager: This class implements a singleton object (shared instance) which manages the cookies used by WebView instances.
  • HttpAuthCredentialDatabase: This class implements a singleton object (shared instance) that manages the shared HTTP auth credentials cache.
  • WebStorageManager: This class implements a singleton object (shared instance) which manages the web storage used by WebView instances.

Support

Did you find this plugin useful? Please consider to make a donation to help improve it!

  • 今天想使用flutter_inappwebview来显示网页,直接在pubspec.yaml中引入包文件:   flutter_inappwebview: ^5.4.3 随后按官方文档的说明,进行引用,但编译总报错,提示需要Android SDK 33版本或更高,于是修改了 android\app下的build.gradle文件,把sdk版本都修改为33 然后编译通过了,但我的虚拟机和手机的A

  • 需求  原生支持富文本编辑,能插入图文视频,支持预览 问题 flutter inappwebview嵌入后由于富文本过长导致app crash 原本实现方案 使用webview + 本地html 实现富文本编辑,预览使用flutter加载webview动态注入富文本内容 Android: https://github.com/wasabeef/richeditor-android iOS:http

  • 问题描述 在使用Flutter开发的过程中,使用flutter_inappwebview实现H5页面的加载,在其他所有设备上都能完美运行,但无法在 Android 12 设备上打开软键盘。本篇博客用于记录该问题的解决方案,希望可以帮助有需要的小伙伴。 解决方案 问题解决参考链接 通过参考上述链接最终解决了该问题。将useHybridComposition设置为true,便能解决该问题,useHyb

  • flutter_inappwebview | Flutter Package (pub.dev) flutter_inappwebview: ^5.3.2 1. 安装插件 配置 flutter_inappwebview 插件。 2. 引入依赖 在需要用到的该插件的文件中引入插件包。 import 'package:flutter_inappwebview/flutter_inappwebview.

  • 资料 官方文档 源码 pubspec.yaml name: flutter_project description: A new Flutter project. publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: sdk: '>=2.12.0

  • flutter_inappwebview加载http请求,非https时由于安全性或者其他问题。默认是无法加载的。需要一些额外的设置。 根据官网的描述: Starting with Android 9 (API level 28), cleartext support is disabled by default。 从安卓9开始,因为cleartext属性默认是不支持的,需要手动设置为可用状态。