aloisdeniel / aloisdeniel/riverpod_navigation
allow pages to stop from navigating away, e.g. if there are unsaved state changes
- 主要语言
- 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 还没有评估数据。