From 78a2ca8ea7b142884773b0eac4b3eedba8036d8b Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 3 Sep 2024 11:32:59 -0400 Subject: [PATCH] Replace deprecated `onPopInvoked` with `onPopInvokedWithResult` https://docs.flutter.dev/release/breaking-changes/popscope-with-result --- lib/components/FormPage.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/FormPage.dart b/lib/components/FormPage.dart index 9f41fd1..e5be025 100644 --- a/lib/components/FormPage.dart +++ b/lib/components/FormPage.dart @@ -38,9 +38,9 @@ class _FormPageState extends State { Widget build(BuildContext context) { changed = widget.changed || changed; - return PopScope( + return PopScope( canPop: false, - onPopInvoked: (bool didPop) async { + onPopInvokedWithResult: (bool didPop, Object? result) async { if (didPop) { return; }