Skip to content

Conversation

@dturner
Copy link

@dturner dturner commented Nov 25, 2025

This commit replaces the existing androidx.navigation:navigation-compose with the new Navigation 3 library.

Key changes include:

  • Adding navigation3-runtime, navigation3-ui, and lifecycle-viewmodel-navigation3 dependencies.
  • Introducing NavigationState to manage navigation back stacks and state restoration across configuration changes.
  • Implementing a Navigator class to handle navigation logic (navigate and goBack).
  • Defining serializable NavKey objects for routes (e.g., Main).
  • Updating MainNavigation to use NavDisplay and the new state management system instead of NavHost.

This commit replaces the existing `androidx.navigation:navigation-compose` with the new Navigation 3 library.

Key changes include:
*   Adding `navigation3-runtime`, `navigation3-ui`, and `lifecycle-viewmodel-navigation3` dependencies.
*   Introducing `NavigationState` to manage navigation back stacks and state restoration across configuration changes.
*   Implementing a `Navigator` class to handle navigation logic (`navigate` and `goBack`).
*   Defining serializable `NavKey` objects for routes (e.g., `Main`).
*   Updating `MainNavigation` to use `NavDisplay` and the new state management system instead of `NavHost`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant