'Flutter implement RefreshIndicator in web view how to get webview full height?
I'm trying to implement RefreshIndicator in Webview widget in app, where RefreshIndicator not working on Webview widget. That's why I wrapped the webview widget into SingleChildScrollView then also wrapped by a container widget. RefreshIndicator displaying perfectly but problem is not able to scroll full page. It just taken screen width and height.
body: RefreshIndicator(
onRefresh: ()=>controller.reload(),
child: SingleChildScrollView(
scrollDirection: Axis.vertical,
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: WebView(
javascriptMode: JavascriptMode.unrestricted,
userAgent: 'random',
initialUrl: 'https://www.amazon.com/',
onWebViewCreated: (controller){
this.controller = controller;
},
),
),
),
),
How can I make it scrollable or how I will give webview width and height in container ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
