aloisdeniel / aloisdeniel/riverpod_navigation

allow pages to stop from navigating away, e.g. if there are unsaved state changes

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
30
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello,
I am going to start a web project with Flutter, for another project use the Fluro library, however, I could not solve the following problem:
If a user is on a page that contains a form and is making modifications is said form, I would like that if he tries to exit without having saved the modifications (either by putting another url, with the browser's backbutton, ...) it would show him an alertdialog giving him the possibility of canceling the navigation to the new url or, on the contrary, of canceling the modifications and staying on the same page where he is.
The question is, can I do this with riverpod_navigation?
riverpod_navigation has any mechanism by which this functionality can be achieved?
Please, if this functionality is possible with riverpod_navigation could you give me some indications.
Thank you so much for all the help.
Regards,
Jose

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。