“WebView_flutter” Kod odpowiedzi

WebView trzepot

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

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu