Skip to content

Commit

Permalink
refactor: replace onPopPage with onDidRemovePage in Navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
yuruyuri16 committed Nov 22, 2024
1 parent 838f92c commit 4ee27ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/flow_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class _FlowBuilderState<T> extends State<FlowBuilder<T>> {
pages: _pages,
observers: widget.observers,
clipBehavior: widget.clipBehavior,
onPopPage: (route, dynamic result) {
onDidRemovePage: (page) {
if (_history.length > 1) {
_history.removeLast();
_didPop = true;
Expand All @@ -194,8 +194,7 @@ class _FlowBuilderState<T> extends State<FlowBuilder<T>> {
_pages.removeLast();
}
setState(() {});
route.onPopInvoked(true);
return route.didPop(result);
page.onPopInvoked(true, null);
},
),
),
Expand Down

0 comments on commit 4ee27ec

Please sign in to comment.