Jetpack compose is used to build modern UI using Material 3 library and you don’t need to create UIs in the XML as we do in the normal android studio project.
Best dependencies or packages I found while learning about Jetpack Compose:
- Coil -> It is used to show the image directly from the URL in the app. You just need to add the dependencies in the build.gradle file at app level and done. Now you are ready to use the AsyncImage function (I don’t know exactly what to say those who render something on the screen.
Note: as you are going to use URL in the AsyncImage that means you need have the internet permission in the android manifest. - Retrofit -> It is used to do API calls either it is GET, POST, PUT, PATCH or DELETE or any other HTTP methods. To use this package you need implement its latest version in the app level build.gradle file.
Not: as it is also going to use internet, you should have internet permission in the android manifest xml file. - Converter-Gson -> It is used with Retrofit to parse JSON from the response we receive from the API.
- Media -> This package is used to play the video from the URL in the jetpack compose.
Leave a Reply