title: Flutter: How to fit the web view size to screen?
body: <p>I am new in flutter,</p>
  
  <p>tried to use web view in flutter, but the the size of the web view is bigger than the screen.</p>
  
  <p>I want to fit the web page size to the phone screen size.</p>
  
  <p>How I can do that?</p>
  
  <p>Here is what I get now:</p>
  
  <p><a href="https://i.stack.imgur.com/PmkFg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PmkFg.jpg" alt="enter image description here"></a></p>
  
  <p>I want to see: </p>
  
  <p><a href="https://i.stack.imgur.com/wfYSv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfYSv.jpg" alt="enter image description here"></a></p>
  
  <p>Here is my code:</p>
  
  <p>import 'package:flutter/material.dart';</p>
  
  <p>import 'package:flutter_webview_plugin/flutter_webview_plugin.dart';</p>
  
  <pre><code>class CoursesInformation extends StatefulWidget {
    @override
    _WebViewExampleState createState() =&gt; _WebViewExampleState();
  }
  
  class _WebViewExampleState extends State&lt;CoursesInformation&gt; {
    TextEditingController controller = TextEditingController();
    FlutterWebviewPlugin flutterWebviewPlugin = FlutterWebviewPlugin();
    var urlString = "https://shoham.biu.ac.il/BiuCoursesViewer/MainPage.aspx";
  
    launchUrl() {
      setState(() {
        urlString = controller.text;
       flutterWebviewPlugin.reloadUrl(urlString);
         flutterWebviewPlugin.launch(urlString,
                rect: new Rect.fromLTWH(
                    0.0, 
                    0.0, 
                    MediaQuery.of(context).size.width, 
                    300.0));
      });
    }
  
    @override
    void initState() {
      super.initState();
  
      flutterWebviewPlugin.onStateChanged.listen((WebViewStateChanged wvs) {
        print(wvs.type);
      });
    }
  
    @override
    Widget build(BuildContext context) {
      return Directionality(
      textDirection: TextDirection.rtl,
      child: WebviewScaffold(
        appBar: AppBar(
          title: Text('מידע על קורסים'),
          centerTitle: true
        ),
        url: urlString,
        withZoom: true,
        scrollBar: true,
        withJavascript: true,
        useWideViewPort: true,
  
        withLocalStorage: true,
          ));
    }
  }
  </code></pre>