fluttercommunity / fluttercommunity/flutter_webview_plugin
WebViewState finishLoad calling multiple time
- Lenguaje dominante
- Java
- Estrellas
- 1.5k
- Forks
- 938
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Based on finish load I want to save this url in database. But finishLoad calling multiple time. Why it's behavior is like this?
my code:
_webviewPlugin.onStateChanged.listen((WebViewStateChanged state) async {
if (mounted) {
if(WebViewState.startLoad == state.type){
setState(() {
isProgress = true;
});
}else if(WebViewState.finishLoad == state.type){
isProgress = false;
await database.saveUser(new History(widget.uri.toString(), "Hello title"));
}
}
});
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.