webview_all 0.2.1
webview_all: ^0.2.1 copied to clipboard
A webview component with full platform support, based on the existing package.
example/lib/main.dart
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")));
}
}