Skip to content

Commit

Permalink
Remove manual backButtonDispatcher setup from example
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAschenbach committed Apr 1, 2021
1 parent a628acf commit 6e3e042
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ class AppItem extends StatelessWidget {

@override
Widget build(BuildContext context) {
BackButtonDispatcher parentDispatcher = Router.of(context).backButtonDispatcher;
BackButtonDispatcher childDispatcher = parentDispatcher.createChildBackButtonDispatcher();

childDispatcher.takePriority();

return Provider<int>.value(
value: itemNumber,
child: AdvancedNavigator(
Expand All @@ -80,7 +75,6 @@ class AppItem extends StatelessWidget {
CupertinoPage(child: ViewEditItem()),
],
},
backButtonDispatcher: childDispatcher,
),
);
}
Expand Down

0 comments on commit 6e3e042

Please sign in to comment.