Skip to content

Commit

Permalink
feat: add pop to root
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Nov 5, 2024
1 parent 0b6d0cf commit a060bad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app_navigator/lib/src/content_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ class ContentNavigatorBloc extends BaseBloc {
}
}

/// Pop to root screen
void popToRoot(BuildContext context) {
popUntilPathOrPush(context, rootContentPath);
}

/// Returns true if found
void transientPopUntilPath(BuildContext context, ContentPath path) {
if (_routeAwareManager != null) {
Expand Down

0 comments on commit a060bad

Please sign in to comment.