Jetpack Compose - Composables, ViewModels with Kotlin Flows | CheezyCode Hindi

  Рет қаралды 10,719

Cheezy Code

Cheezy Code

Жыл бұрын

Learn Jetpack Compose in Android. Learn Composables in Compose by creating a simple app. Learn how to use viewmodels inside composables. How to call viewmodel methods and access properties of viewmodels inside composable functions. Learn how to collect Kotlin Flows using collectAsState method. CollectAsState function helps you define a state object based on StateFlows. Learn what is the need of Flows. How to convert that flow object into state that can be consumed in a composable function.
In this video, we have covered the core concept of the app - using flows and state with viewmodels. Learn how to use viewModel() function to create viewmodel object.
Learn how to setup a project from scratch in this video. We will be covering a lot. Learn how to get the data using ChatGPT - good example of using ChatGPT for data curation. You can use this for any category of data you want. This is a simple example and opens a huge opportunity for you to add features. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Create Jetpack Compose Composable function
2. ViewModels - How to use them inside compose
3. Consume Flow objects as state i.e. collect values using collectAsState
4. Jetpack Compose Project with MVVM setup video.
Jetpack Compose Series -
• Android Jetpack Compos...
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

Пікірлер: 42
@wizard9389
@wizard9389 Жыл бұрын
Thank you so much sir !! Mvvm , dependency injection, RXjava , Testing, Jetpack compose, Retrofit, RoomDB ye mene sab aapse hi sikha he !! Thank you so much for providing these valuable content 🙏🙏❤
@CheezyCode
@CheezyCode Жыл бұрын
You are most welcome
@hamzaraheel4598
@hamzaraheel4598 Жыл бұрын
Sir i want to go into kmm tau kia is series may kmm krwa rhay ap, if no then kia future may koi series/course ap upload kray gain?
@utkarshkumar1080
@utkarshkumar1080 Жыл бұрын
Sir, I am eagerly looking forward to your next video ,This playlist is absolutely amazing and has captured our hearts! 😍😍😍 Can't wait for more incredible content from you
@CheezyCode
@CheezyCode Жыл бұрын
Thank you so much 😀
@vikashtiwari8360
@vikashtiwari8360 Жыл бұрын
Thanks for your video
@CheezyCode
@CheezyCode Жыл бұрын
Most welcome
@dclasses662
@dclasses662 Жыл бұрын
Please sir..Make videos on jetpack compose with sqlite database
@akarshmittal9601
@akarshmittal9601 Жыл бұрын
One question, should we create references to our viewmodel and flow inside a side effect handler?
@CheezyCode
@CheezyCode Жыл бұрын
Scenario?
@BtrmaAbhishekVerma
@BtrmaAbhishekVerma 5 ай бұрын
Why flows why not live data, pls explain this. In your previous video of MVVM you have used live data , but not in this video.
@mahboobahmadofficial1
@mahboobahmadofficial1 Ай бұрын
koi din to aye ga again upload hongi videos😔
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
@wesome🎉🎉❤❤
@CheezyCode
@CheezyCode Жыл бұрын
Thank you Rishi bro
@hamzaraheel4598
@hamzaraheel4598 Жыл бұрын
Sir i want to go into kmm tau kia is series may kmm krwa rhay ap, if no then kia future may koi series/course ap upload kray gain?
@hamzaraheel4598
@hamzaraheel4598 Жыл бұрын
Sir i want to go into kmm tau kia is series may kmm krwa rhay ap, if no then kia future may koi series/course ap upload kray gain?
@CheezyCode
@CheezyCode Жыл бұрын
No KMM
@mrtigeryt9558
@mrtigeryt9558 7 ай бұрын
if anyone receiving error that it is coming blank screen on calling the category screen function make sure you have created category screen as an normal kotlin file and not an class same with detail screen
@kishorramani007
@kishorramani007 Жыл бұрын
Hi Jatinbhai, where to check internet connection check and how and where to add progressbar while data is in loading state?
@CheezyCode
@CheezyCode Жыл бұрын
Will cover progress bar scenario...for internet - I have covered in android architecture playlist
@ChocoByte
@ChocoByte Жыл бұрын
fun isNetworkAvailable(context: Context): Boolean { val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager val network = connectivityManager.activeNetwork ?: return false val networkCapabilities = connectivityManager.getNetworkCapabilities(network) ?: return false return networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) }
@dumbcomputer4327
@dumbcomputer4327 Жыл бұрын
I am following this series, I am understanding the things you're saying but in the end of this video one's I run the app the data is fetched from API and perfectly showing the results on DetailScreen() but second time I ran the app I am seeing just a white screen. What should I do?
@CheezyCode
@CheezyCode Жыл бұрын
What's the issue? Check the logcat
@CheezyCode
@CheezyCode Жыл бұрын
I will be sharing the code soon for you to compare. Stay tuned till then
@dumbcomputer4327
@dumbcomputer4327 Жыл бұрын
@@CheezyCode Thank you, I will wait
@dumbcomputer4327
@dumbcomputer4327 Жыл бұрын
@@CheezyCode I fixed that the problem was in the API service it was taking too much time to get response
@CheezyCode
@CheezyCode Жыл бұрын
Will show you some way to look at the API calls
@manishgupta-fm1tr
@manishgupta-fm1tr Жыл бұрын
Suppose we have many screen in our app and we have different composable screens. We are creating ViewModels inside our composable function like in this sample and in this scenario we will have only single activity in our app. so our viewModels will not be cleared until our activity will not destroyed. so it will create a memory issue. how to handle this?
@CheezyCode
@CheezyCode Жыл бұрын
Good point...will be covering this next....With Navigation Framework - this is the added advantage...ViewModels live as long as your Composables live
@manishgupta-fm1tr
@manishgupta-fm1tr Жыл бұрын
@@CheezyCode Thanks
@joanenunemaker3018
@joanenunemaker3018 Жыл бұрын
'PromoSM' 💐
@RajuYadav-qm4ic
@RajuYadav-qm4ic 11 ай бұрын
Unresolved reference: text LazyColumn(content = { items(tweets.value){ TweetListItem(tweet = it.text) }
@debojitdas9026
@debojitdas9026 8 ай бұрын
i am also getting the same error any fixes?
@debojitdas9026
@debojitdas9026 8 ай бұрын
got the solution, check the second video (of this app)
@RajuYadav-qm4ic
@RajuYadav-qm4ic 8 ай бұрын
@@debojitdas9026 don't worry I already fixed it if you want I can give you full source code GitHub link
Jetpack Compose Navigation with Nav Arguments | CheezyCode Hindi
20:35
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
【Fuel】Rest API Client with Android + Jetpack Compose
8:53
kenmaro's prototyping
Рет қаралды 1,9 М.
State holders and state production in the UI Layer
20:53
Android Developers
Рет қаралды 45 М.
THIS Compose-State Mistake Leads to Problems In Your Code
7:58
Philipp Lackner
Рет қаралды 40 М.
Jetpack Compose: State
5:45
Android Developers
Рет қаралды 93 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 110 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН