“webview_flutter” Código de respuesta

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

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código