fluttercommunity / fluttercommunity/flutter_webview_plugin
WebView flashes when altering page using Javascript
- Lenguaje dominante
- Java
- Estrellas
- 1.5k
- Forks
- 938
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I have the following code that removes some bloat from my reading app.
```
await handlePreferences().then((s) async {
await _fwp.evalJavascript(pageCleaner).then((s) async {
await _fwp.show();
});
});
```
However, the webview flashes when it's shown, and you can see the bloated page for a second before being replaced. Is there a way to fix this?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start with the reported sequence of handlePreferences, evalJavascript(pageCleaner), and _fwp.show(), then trace how the WebView is displayed during page loading and JavaScript evaluation. Determine why the uncleaned page becomes visible first; done means the WebView no longer flashes the bloated page before cleanup is applied.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart, flutter, javascript
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100