Skip to content

The Navigation component provides support for Jetpack Compose applications. You can navigate between composables while taking advantage of the Navigation component's infrastructure and features. Basic concept about navigation in Jetpack compose.

Dinesh2510/Navigation-in-Jetpack-Compose

Repository files navigation

Navigation in Jetpack Compose [MAIN Branch]

Navigaiton Projects

Name Branch Name Clone Url
Navigation with compose Main git clone https://github.com/Dinesh2510/Navigation-in-Jetpack-Compose.git
Navigation with Arguments navigation_part2 git clone https://github.com/Dinesh2510/Navigation-in-Jetpack-Compose.git -b navigation_part2
Nested Navigation nested_nav git clone https://github.com/Dinesh2510/Navigation-in-Jetpack-Compose.git -b nested_nav

Overview

This repository provides a comprehensive guide and example code for implementing navigation in Jetpack Compose, covering fundamental concepts to advanced techniques.

Key Features

  • NavHost Setup: Learn how to set up a NavHost to manage navigation within your Jetpack Compose app.
  • NavController: Understand the usage of NavController for seamless navigation control.
  • Navigation Composable Functions: Dive into the various composable functions that facilitate navigation between screens.
  • Handling Arguments: Explore how to pass data between destinations using Jetpack Compose navigation.
  • Advanced Navigation Patterns: Learn advanced navigation patterns to handle complex app flows.
  • Troubleshooting Tips: Get insights into common challenges faced during navigation and how to overcome them.

Screenshots

Introduction to Navigation Navigating with arguments
IMAGE IMAGE

Getting Started

To integrate this navigation module into your Jetpack Compose project, follow these steps:

  1. Clone this repository: git clone https://github.com/Dinesh2510/Navigation-in-Jetpack-Compose.git.
  2. Copy the navigation package into your project.
  3. Follow the provided examples and documentation.

Dependencies

The project relies on the following dependencies:

  • Jetpack Compose
  • Navigation Compose

Contribution

Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and collaboration are highly appreciated!