diff --git a/lib/src/widgets/master_detail/yaru_portrait_layout.dart b/lib/src/widgets/master_detail/yaru_portrait_layout.dart index 010b6984d..f7c6f1c09 100644 --- a/lib/src/widgets/master_detail/yaru_portrait_layout.dart +++ b/lib/src/widgets/master_detail/yaru_portrait_layout.dart @@ -93,8 +93,8 @@ class _YaruPortraitLayoutState extends State { @override Widget build(BuildContext context) { final theme = YaruMasterDetailTheme.of(context); - return WillPopScope( - onWillPop: () async => !await _navigator.maybePop(), + return PopScope( + onPopInvoked: (v) async => await _navigator.maybePop(), child: Theme( data: Theme.of(context).copyWith( pageTransitionsTheme: theme.portraitTransitions,