fluttercommunity / fluttercommunity/flutter_webview_plugin
WebViewState finishLoad calling multiple time
- 主要言語
- Java
- スター
- 1.5k
- フォーク
- 938
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Based on finish load I want to save this url in database. But finishLoad calling multiple time. Why it's behavior is like this?
my code:
_webviewPlugin.onStateChanged.listen((WebViewStateChanged state) async {
if (mounted) {
if(WebViewState.startLoad == state.type){
setState(() {
isProgress = true;
});
}else if(WebViewState.finishLoad == state.type){
isProgress = false;
await database.saveUser(new History(widget.uri.toString(), "Hello title"));
}
}
});
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start at the _webviewPlugin.onStateChanged listener and the WebViewState.finishLoad event path shown in the report. Reproduce the repeated finishLoad notifications with the provided database save, then document the event lifecycle and the condition under which the URL should be saved.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- dart, flutter
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100