Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 
pilo 77def66498 first commit 2 settimane fa
example first commit 2 settimane fa
lib first commit 2 settimane fa
linux first commit 2 settimane fa
macos first commit 2 settimane fa
test first commit 2 settimane fa
windows first commit 2 settimane fa
CHANGELOG.md first commit 2 settimane fa
LICENSE first commit 2 settimane fa
README.md first commit 2 settimane fa
analysis_options.yaml first commit 2 settimane fa
pubspec.yaml first commit 2 settimane fa

README.md

Webview Universal

Webview universal yang mudah di gunakan

Tested On

OS Tested
Android Tested
Linux Tested
Windows Tested
ios Not Tested
Web Tested
macOS Not Tested
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();
    task();
  }

  Future<void> task() async {
    await webViewController.init(
      context: context,
      uri: Uri.parse("https://flutter.dev"),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: WebView(
        controller: webViewController,
      ),
    );
  }
}