Рет қаралды 6,790
Learn Jetpack Compose in Android. In this video, learn what is produceState in Jetpack Compose, how to use produceState with a simple example. It is a syntactial sugar over launchedeffect and uses LaunchedEffect behind the scenes. Learn how to animate an image using produceState. This is a handy utility method to combine state and its asynchronous operation to update its value. We have covered one example of how to use this for animating a simple image. It comes handy when we want to use LiveData or Flow in composable functions.
Learn derivedStateOf in Compose with a simple example. As its name suggests, you can use derivedStateOf to calculate new state based on the existing state values. Learn how to use this function to compute new state value. Simple example of using derivedStateOf is also covered in this video. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Need of produceState.
2. produceState example - creating a animated loader
3. derivedStateOf example in compose
4. Complete Side Effect handlers in Compose
Kotlin Flows Playlist -
• Kotlin Flows Tutorials
Jetpack Paging Tutorial -
• Android Paging 3 | Jet...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode