WillPopScope -> PopScope

This commit is contained in:
Vadim 2025-01-06 15:15:31 +01:00
parent 2b6b27bcf4
commit 5753e261f6

View file

@ -178,8 +178,8 @@ class AnimatedDialogState extends State<AnimatedDialog> 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,