How to create Gradient Button using JetPack Compose

Hi Today we look on to how to create a gradient button using JetPack Compose first we will be creating a kotlin class named GradientButton inside we will be creating a composable fun GradientButton with input parameter text in the form of…

Scope Function in Kotlin

What is Scope Function?

Scope Function execute a block of code within context of object.That is if you perform this function on an object inside an lambda expresssion then the scope inside the expression will be executed that is called Scope Function

Types Of Scope Function

Implementing onBoarding ViewPager Using JetPack Compose

Lets jump straight in to the example

Necessary implementation to the app level build gradle file

// Paging Compose
implementation ""
implementation ""

implementation "androidx.hilt:hilt-navigation-fragment:1.0.0"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0-alpha03"
implementation "androidx.navigation:navigation-compose:2.4.0-alpha04"

implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.3.1"…

How to implement camera Capture and save Image using Jetpack compose

For this we need to implement camerax in our app level gradle file

def camerax_version = "1.0.2"
implementation "${camerax_version}"
implementation "${camerax_version}"
implementation "${camerax_version}"
implementation ""

Followed by our permission implementation

implementation ""…

Handling Multiple Permission using Jetpack Compose

Hi Friends todays we look in to how to handle multiple permission using Jetpack compose so in this example we use CAMERA and RECORD_AUDIO Permission

First we have to add google accompanist implementation in our app build gradle which make the permission process easy

Flow vs SharedFlow

what is Flow?

Flow is an interface , its just emit value it doesn't store any value on screen rotation it will be started from first. we use flow if you want to emit any api response to view or any multiple emit need to be done.


what is Stateflow?

StateFlow is an interface, which contains read-only and always return the updated value.The update value is passed through implemented flow like MutableStateFlow.

StateFlow return only when the value is updated if same value mean it doesnt return

StateFlow is observed using collect inside corroutine scope like…


What is fragment and why we use fragment?

First lets see what is fragment?

Fragment can be called as part of activity or may be ‘’sub activity’’ the fragments lifecycle depends on the activity lifecycle since the fragments are included inside the activity. …

Load data from api to recylerview using JetPack Compose

Hi today we look in to an concept of how to load data from an api using retrofit and load in to an recylerview using Jetpack Compose and single selection highlight on recylerview selection.

First we import things needed for retrofit…

Application for Java,Kotlin and Data structure Programmer

Hi friends i have created an app for the programmers to keep in touch with latest technologies and to learn existing & new concept.So Please check my app on play store its very simple and easy to use i will be posting my updates daily in that application.

Thanks for your support and keep supporting to learn new thing

Pandiyan Mani

Knowledge is everything.Check out my app at

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store