fluttercommunity / fluttercommunity/flutter_webview_plugin

WebView flashes when altering page using Javascript

Open
#357 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.