atomic_webview 0.0.7 copy "atomic_webview: ^0.0.7" to clipboard
atomic_webview: ^0.0.7 copied to clipboard

Atomic Webview is cross platform webview for android, ios, linux, macos, web, windows

example/README.md

Example of usage atomic_webview #


import 'package:flutter/material.dart';
import 'package:atomic_webview/atomic_webview.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.cn"),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: FloatingActionButton(
          onPressed: () {
            webViewController.goBackSync();
          },
          child: Icon(Icons.abc),
        ),
      ),
      body: WebView(
        controller: webViewController,
      ),
    );
  }
}
5
likes
150
points
124
downloads

Publisher

verified publisherworkforceanalytics.co.za

Weekly Downloads

Atomic Webview is cross platform webview for android, ios, linux, macos, web, windows

Repository (GitHub)
View/report issues

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 atomic_webview