fluttercommunity / fluttercommunity/flutter_webview_plugin

WebView flashes when altering page using Javascript

Aperta
#357 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
1.5k
Fork
938
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
dart, flutter, javascript
Ambito
mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.