Welcome back.
The first step is to add the navigation component library to our application.
For that, go to Android Studio and create a new project called Navigation App.
Then go to Developer.android.com slash develop slash UI, slash compose slash navigation or simply you
can search for navigation component with compose dependency.
Scroll down.
The navigation component provides support for Jetpack Compose applications.
You can navigate between Composables while taking advantage of the navigation components, infrastructure,
and features.
For that.
Copy this and to support compose, use the following dependency in your app modals Build.gradle file.
Go to Android Studio and go to build.gradle.
Locate the module app.
Search for dependencies and paste it here.
This is the dependency for the navigation component.
Click on sync now and here we go.
This is our navigation component dependency.
Close it.
And now our application is ready to use navigation component.