Flutter WebView 库梳理

1WebView 是 Flutter 下的一个老大难问题。难的问题,也是有意思的问题。在这一主题下,诞生了很多有意思的项目。

首先,有 Flutter 官方团队维护的 webview_flutter,目前已经基本解决了移动端(Android、iOS)下 Flutter 使用 WebView 的问题。社区根据 webview_flutter,涌现出一批三方实现,封装的能力更多。

在桌面端方面,进度明显落后于移动端。基于 iOS、macOS 的系统架构相似性,首先涌现出 macOS 下的 Flutter WebView。之后,在 Windows 端基于 WebView2 也有 Flutter WebView 了。近日,由日本开发者完成了 Linux 下 Flutter WebView 的开发,底层基于 CEF (Chromium Embedded Framework)。我觉得 CEF 不失于整个桌面端统一 Flutter WebView 方案,有很大潜力。

在脑洞方面?首先 Tizen 系统完成了 WebView 的实现(Tizen 下还能用 Flutter?)。然后,还有小伙伴,基于 WebF(一个以 Flutter
技术栈实现的 W3C 部分兼容浏览器渲染引擎)进行桌面端展示。

在本文中,我对相关的开源项目、开源库进行了梳理罗列。


webview_flutter(3.6k likes, 3.8k stars)

A Flutter plugin that provides a WebView widget on Android and iOS.

1.1 使用 Flutter webview_flutter 库引入 WebView 能力

源码分析《Flutter webview_flutter Android 端实现原理

网络资源:


webview_flutter_plus_latest

webview_flutter_plus_latest | Flutter Package


webview_flutter_wkwebview

A Flutter plugin that provides a WebView widget based on Apple's WKWebView control.

A Flutter plugin that provides a WebView widget based on Apple's WKWebView control.


webview_all

a webview widget with full-platform support, based on the existing packages

a webview widget with full-platform support, based on the existing packages

Detail


flutter_linux_webview

A Linux Desktop implementation for the webview_flutter (v3.0.4) plugin, powered by CEF (Chromium Embedded Framework)

flutter_linux_webview | Flutter package


webview_flutter_tizen

Tizen implementation of the webview_flutter plugin.

Tizen implementation of the webview_flutter plugin.


webview_flutter_lwe

Tizen implementation of the webview_flutter plugin backed by Lightweight Web Engine.

webview_flutter_lwe


zycloud_widget

This library contains a dynamic Flutter widget module based on the shelf_easy virtual machine, and some third-party library bridge generation modules.

This library contains a dynamic Flutter widget module based on the shelf_easy virtual machine, and some third-party library bridge generation modules.

yangfanyu 作者的项目很有意思。


simple_platform_view

A Flutter plugin to integrate platform views directly into the Flutter view hierarchy, aiming to provide the best possible performance.

A Flutter plugin to integrate platform views directly into the Flutter view hierarchy, aiming to provide the best possible performance.

Plugins 插件
simple_google_maps_flutter
simple_webview_flutter

本文作者:Maeiee

本文链接:Flutter WebView 库梳理

版权声明:如无特别声明,本文即为原创文章,版权归 Maeiee 所有,未经允许不得转载!


喜欢我文章的朋友请随缘打赏,鼓励我创作更多更好的作品!