fluttercommunity / fluttercommunity/flutter_webview_plugin

_onStateChanged listener is only once?

Open
#42 3 comments 7 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

I wrote the example.
https://pub.dartlang.org/packages/flutter_webview_plugin#-example-tab-

I pushed "Open widget webview" button.
The example show log text `onStateChanged: WebViewState.startLoad` and `onStateChanged: WebViewState.finishLoad` in the bottom.

I pushed "Open widget webview" button again, but it didn't show log text again.
Why only once?

I just want to do is that call JS when WebviewScaffold's url finish.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked package example and the WebViewScaffold usage around the onStateChanged logs. Reproduce opening the webview twice, then trace when the state listener emits startLoad and finishLoad. Done means the reported behavior is explained or corrected and the example demonstrates calling JavaScript after the URL finishes loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.