Pop confirmation modal only for changed forms (#178)
This commit is contained in:
parent
fcf21f6f6b
commit
6d9bcc9ba1
|
@ -39,7 +39,7 @@ class _FormPageState extends State<FormPage> {
|
|||
changed = widget.changed || changed;
|
||||
|
||||
return PopScope<Object?>(
|
||||
canPop: false,
|
||||
canPop: !changed,
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) async {
|
||||
if (didPop) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue