I am trying to implement progress indicator for reloading url using webview plugin. Here are parts of the code:
...
flutterWebviewPlugin.reloadUrl('file://${file.path}')
.then((onValue) =>
setState(() {
_isLoading = false;
})
);
...
Widget build(BuildContext context){
return new Scaffold(
body: Container(
child: _isLoading
? Center(
child: CircularProgressIndicator(),
)
: WebviewScaffold(
url: 'about:blank',
),
),
);
}
Debugging starting with setState() propagates through setState() and calls build(), however new web page does not load. If I substitute
WebviewScaffold for Text() widget - I can see text loading. Why can't I see WebviewScaffold loaded?
Thanks,
Alex