From 5753e261f65fdebfff4dfbd2202bd5927acf89f2 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:15:31 +0100 Subject: [PATCH] `WillPopScope` -> `PopScope` --- .../components/animated_dialog/widget_dialog_animated.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/metering/components/shared/readings_container/components/shared/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart b/lib/screens/metering/components/shared/readings_container/components/shared/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart index 264bbbd..2a0f50d 100644 --- a/lib/screens/metering/components/shared/readings_container/components/shared/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart +++ b/lib/screens/metering/components/shared/readings_container/components/shared/animated_dialog_picker/components/animated_dialog/widget_dialog_animated.dart @@ -178,8 +178,8 @@ class AnimatedDialogState extends State with SingleTickerProvide opaque: false, transitionDuration: Duration.zero, reverseTransitionDuration: Duration.zero, - pageBuilder: (_, __, ___) => WillPopScope( - onWillPop: () => _animateReverse().then((value) => true), + pageBuilder: (_, __, ___) => PopScope( + onPopInvokedWithResult: (_, __) => _animateReverse().then((value) => true), child: _AnimatedOverlay( controller: _animationController, barrierColorAnimation: _barrierColorAnimation,