“webview_flutter” Kode Jawaban

Webview Flutter

import 'dart:io';

 import 'package:webview_flutter/webview_flutter.dart';

 class WebViewExample extends StatefulWidget {
   @override
   WebViewExampleState createState() => WebViewExampleState();
 }

 class WebViewExampleState extends State<WebViewExample> {
   @override
   void initState() {
     super.initState();
     // Enable virtual display.
     if (Platform.isAndroid) WebView.platform = AndroidWebView();
   }

   @override
   Widget build(BuildContext context) {
     return WebView(
       initialUrl: 'https://flutter.dev',
     );
   }
 }
Nutty Newt

webview_flutter

dependencies:
  webview_flutter: ^1.0.7
Long Loris

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya