add a new PopScope.onPopWithResultInvoke widget to replace PopScope.onPopInvoke (#147016)
same as https://github.com/flutter/flutter/pull/139164, but make it a soft transition
This commit is contained in:
@@ -111,7 +111,7 @@ class _SaveableFormState extends State<_SaveableForm> {
|
||||
const SizedBox(height: 20.0),
|
||||
Form(
|
||||
canPop: !_isDirty,
|
||||
onPopInvoked: (bool didPop) async {
|
||||
onPopInvokedWithResult: (bool didPop, Object? result) async {
|
||||
if (didPop) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user