webview_all 0.5.2
webview_all: ^0.5.2 copied to clipboard
a webview widget with full-platform support, based on the existing packages
Webview for All Flutter Platform #
a webview widget with full-platform support, based on the existing packages
| Platform | Status | Note | |
|---|---|---|---|
| Android | ✅ | SDK 20+ | |
| IOS | ✅ | SDK 9+ | |
| Web | ✅ | Any | |
| Windows | ✅ | Win 10+ | |
| macOS | ✅ | Any | |
| Linux | ✅ | Any |
⚠: Linux platform requires more testing.
Quick Start #
-
Add
webview_allas a dependency in yourpubspec.yamlfile. -
Just use it:
import 'package:flutter/material.dart';
import 'package:webview_all/webview_all.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Webview All',
debugShowCheckedModeBanner: false,
home: MyBrowser(),
);
}
}
class MyBrowser extends StatefulWidget {
const MyBrowser({Key? key, this.title}) : super(key: key);
final String? title;
@override
_MyBrowserState createState() => _MyBrowserState();
}
class _MyBrowserState extends State<MyBrowser> {
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Center(
// Look here!
child: Webview(url: "https://www.wechat.com/en")
)
);
}
}
Run flutter run -d windows, then you will see:

Detail #
On iOS/macOS the Webview widget is backed by a WKWebView.
On Android the Webview widget is backed by a WebView.
On Web the Webview widget will use the webview_flutter_web plugin.
On Windows the Webview widget will use the webview_windows plugin.
On Linux the Webview widget will use the webview_cef plugin.