Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Oct 22, 2024
1 parent c7a3932 commit 67aa3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/navigation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ class _MaterialTabViewState extends ConsumerState<_MaterialTabView> {
final currentTab = ref.watch(currentBottomTabProvider);
final enablePopHandler = currentTab == widget.tab;
return NavigatorPopHandler(
onPop: enablePopHandler
? () {
onPopWithResult: enablePopHandler
? (_) {
widget.navigatorKey?.currentState?.maybePop();
}
: null,
Expand Down

0 comments on commit 67aa3cb

Please sign in to comment.