Skip to content

Commit

Permalink
fix: use PopScope
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Dec 7, 2023
1 parent d4e9b92 commit 6781ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/widgets/master_detail/yaru_portrait_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class _YaruPortraitLayoutState extends State<YaruPortraitLayout> {
@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,
Expand Down

0 comments on commit 6781ca0

Please sign in to comment.