webview_all 0.2.4 copy "webview_all: ^0.2.4" to clipboard
webview_all: ^0.2.4 copied to clipboard

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

Webview for All Flutter Platform #

English Doc    中文文档

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

Android SDK 20+
IOS SDK 9.0+
Web Any
Linux Not widely tested
macOS Not widely tested
Windows 7+

Quick Start #

  1. Add webview_all as a dependency in your pubspec.yaml file.

flutter pub add webview_all

  1. 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(
          child: Webview(url: "https://www.baidu.com")
      )
    );
  }
}

Detail #

On iOS 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.

This official plugin from Flutter is not working at the moment, so we are using url_launcher plugin instead. We will update webview_all as soon as the bug is fixed.

On desktop the Webview widget will use the webf plugin and only support simple webpage.

25
likes
0
pub points
90%
popularity

Publisher

verified publisherabandoft.com

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, url_launcher, webf, webview_flutter

More

Packages that depend on webview_all