webview_all 0.1.1
webview_all: ^0.1.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 MaterialApp(
title: 'Flutter Webview',
theme: ThemeData(
primarySwatch: Colors.blueGrey,
),
home: const MyHomePage(title: 'Flutter Webview Demo'),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body:
const Webview(url: "https://flutter.dev/", appName: "Hello World"));
}
}