webview_universal 0.0.4 copy "webview_universal: ^0.0.4" to clipboard
webview_universal: ^0.0.4 copied to clipboard

Show a webview window on your flutter cross platform android, ios, linux, macos, web, windows.

example/lib/main.dart

import 'package:flutter/material.dart';
import "package:webview_universal/webview_universal.dart";

void main(List<String> args) {
  runApp(const MaterialApp(
    home: MyApp(),
  ));
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  WebViewController webViewController = WebViewController();

  @override
  void initState() {
    super.initState();
    webViewController.init(
      context: context,
      setState: setState,
      uri: Uri.parse("https://flutter.dev"),
    );
  } 

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: WebView(
        controller: webViewController,
      ),
    );
  }
}
45
likes
130
pub points
92%
popularity

Publisher

unverified uploader

Show a webview window on your flutter cross platform android, ios, linux, macos, web, windows.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, path, universal_io, webview_flutter, webview_flutter_android, webview_flutter_web, webview_flutter_wkwebview

More

Packages that depend on webview_universal