Flutter: How to show a CircularProgressIndicator before WebView loads de page?
问题 I'm using the webview_fluttter plugin, but I can't find a way to show a CircularProgressIndicator before the webview shows the page... What's the equivalent of Androids WebViewClient onPageStarted/onPageFinished? WebView( initialUrl: url, onWebViewCreated: (controller) { }, ) thank you 回答1: In version 0.3.5 there is 'onPageFinished' callback. You can create WebView container with IndexedStack. import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; class