fluttercommunity / fluttercommunity/flutter_webview_plugin
The listener onUrlChanged did not trigger
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 936
- PR merge metrics
- No merged PRs in 30d
Description
1. In the webview plugin, the route jump between h5 did not trigger onUrlChange.
2. for example, just jumps to its sub-route
```
void initState() {
super.initState();
flutterWebviewPlugin.close();
_stateListener = flutterWebviewPlugin.onStateChanged.listen((viewState) async {
if (viewState.type == WebViewState.finishLoad) {
print('xxx');
}
});
_urlListener = **flutterWebviewPlugin.onUrlChanged.listen**((String url) {
// here, can not been trigger where roure change
if(mounted) {
}
});
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The report identifies flutterWebviewPlugin.onUrlChanged, onStateChanged, and WebViewState.finishLoad; start by locating these entry points in the plugin and reproducing an in-webview h5 sub-route navigation. Done means the URL-change behavior is understood and the reported route transition is covered by a verified result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100