What is a Dependency Injection?
How do you use Jetpack compose - Dependency injection with Dagger/HILT?
Dependency injection (DI) is a technique widely used in programming and well suited to Android development, where dependencies are provided to a class instead of creating them itself.
HILT is a dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project.
You can find complete source code here.
Learn how to implement Dependency injection with Dagger/HILT using Jetpack Compose.