Skip to content

Conversation

@dturner
Copy link

@dturner dturner commented Nov 25, 2025

This commit migrates the app from Navigation 2 to Navigation 3, following the newly added migration-guide.md.

Key changes include:

  • Replacing NavHost with NavDisplay.
  • Introducing NavigationState to manage navigation back stacks and Navigator to handle navigation events, replacing NavController.
  • Defining routes as type-safe NavKey objects.
  • Moving destination definitions from NavHost's graph builder to an entryProvider.
  • Adding Navigation 3 dependencies and removing the old navigation-compose library.
  • Enabling the Kotlin serialization plugin.

This commit migrates the app from Navigation 2 to Navigation 3, following the newly added `migration-guide.md`.

Key changes include:
*   Replacing `NavHost` with `NavDisplay`.
*   Introducing `NavigationState` to manage navigation back stacks and `Navigator` to handle navigation events, replacing `NavController`.
*   Defining routes as type-safe `NavKey` objects.
*   Moving destination definitions from `NavHost`'s graph builder to an `entryProvider`.
*   Adding Navigation 3 dependencies and removing the old `navigation-compose` library.
*   Enabling the Kotlin serialization plugin.
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