Jetpack Navigation 3
12 days ago
- #Jetpack Compose
- #Navigation
- #Android
- Introduction of Jetpack Navigation 3 (Nav3), a new navigation library built specifically for Jetpack Compose.
- Nav3 addresses limitations of the original Jetpack Navigation library (Nav2), such as indirect back stack observation and single-destination display.
- Key principles of Nav3 include declarative programming and Compose state as fundamental building blocks.
- Nav3 allows for greater flexibility, such as implementing adaptive layouts with multiple panes.
- A code sample demonstrates defining routes, managing back stack, and displaying content with NavDisplay.
- Nav3 is currently in alpha, with plans for more documentation, code recipes, and blogs in the future.
- Developers are encouraged to provide feedback and file issues to help improve Nav3.