Thank you @cheezyCode for this playlist. I have one question on this. Lets say i show title on CategoryList page , how do i change it to show the selected category on Details page? This is how i did it for title setContent { Box( modifier = Modifier .fillMaxSize() .background(color = Color.Black) ) { Column(horizontalAlignment = Alignment.CenterHorizontally) { Text( text = "Tweetsy Categories", fontSize = 22.sp, color = Color.White, modifier = Modifier.padding(16.dp), style = MaterialTheme.typography.body1 ) App() } } }
Please tell me, what are the sources of the example on github? I am interested in how to properly inject and mark repository / interactor so that they can be injected
hi Jatinbhai, mere me lamda vala "it" and other suggestion nahi aa rahe hai android studio me, might be setting change ho gayi ho. setting enable karne ka koi idea ho to batao.
I think we can also pass data in DetailsScreen like this DetailsScreen(category) and in DetailsScreen function we call viewModel.fetcheCategoryTweets(category). This approach we can also right??
Hello Sir Sometimes what what happenes when we make call of service it gets call two or three times in compose I don't know why it happens and how to stop doing that. So could you please make a video on best practices to avoid that recomposition?
you are doing it the wrong way. according to compose documentation, composable function must never know about viewmodels and you must always pass the info as parameter and handle the updates. you coult also assign an id to each item in grid to make recomposition better
So it must be provided via parameters. Yes I know that it becomes very hectic but I one of Google's sample they did this. In Google summit they said that compose must be as independent as possible. For testing, passing a string is better than passing a viewmodel. If you are following that approach get viewmodel from parameters so that it's not initialised on every recomposition
Hey Cheesy, Please make a video on CICD for deployment of app to Firebase App Distribution and Play Console ✌
1 suggestion. We can also hoist viewmodel and use a separate composable which only renders view state to help with previews 😊
Amazing video and helps understand some tricky areas
Continue watching 🎉🎉❤Thanku sir
Thank you ☺️
Thank you @cheezyCode for this playlist❤. Are any more videos coming to this playlist?
Yes
Hi Cheezy, Could you please make some videos on CI/CD Pipeline to deploy the app on Firebase or Play Store Console?
Yes, it would be helpful.
Thank you @cheezyCode for this playlist. I have one question on this.
Lets say i show title on CategoryList page , how do i change it to show the selected category on Details page?
This is how i did it for title
setContent {
Box(
modifier = Modifier
.fillMaxSize()
.background(color = Color.Black)
) {
Column(horizontalAlignment = Alignment.CenterHorizontally) {
Text(
text = "Tweetsy Categories", fontSize = 22.sp,
color = Color.White,
modifier = Modifier.padding(16.dp),
style = MaterialTheme.typography.body1
)
App()
}
}
}
Awesome 🤗
Your tutorials are amazing 🎉, can you please use dark theme for ide it's really painful to see light colours on code. Thanks in advance
Can we pass DataClass Object/HashMap/ as an argument?
Please tell me, what are the sources of the example on github? I am interested in how to properly inject and mark repository / interactor so that they can be injected
Hey Cheesy, How can we pass the custom object as navigation param?
hi Jatinbhai,
mere me lamda vala "it" and other suggestion nahi aa rahe hai android studio me, might be setting change ho gayi ho.
setting enable karne ka koi idea ho to batao.
What if we want to add viewpager in the screen with different fragments in compose.
Amazing
Hey at 5:18 how is this on click working can someone explain I'm new to android
We should be able to create the viewmodel instance in a composable without hilt. May be need to dig more of what happened
In the previous video, viewmodel was created without HILT - you can refer that video
Hey at 4:51 how is this on click working can someone explain I'm new to android
I think we can also pass data in DetailsScreen like this DetailsScreen(category) and in DetailsScreen function we call viewModel.fetcheCategoryTweets(category). This approach we can also right??
that would not be saved during configuration change
Please provide this code with Effect Handlers jetpack compose.
Can you share repository for this code?
Hello Sir
Sometimes what what happenes when we make call of service it gets call two or three times in compose I don't know why it happens and how to stop doing that.
So could you please make a video on best practices to avoid that recomposition?
Effect Handlers is the way to solve this issue
After completing app plzz provide source code...
Why not in English language ?
There are tons of videos in English and Hindi is untouched
you are doing it the wrong way. according to compose documentation, composable function must never know about viewmodels and you must always pass the info as parameter and handle the updates. you coult also assign an id to each item in grid to make recomposition better
Top level composables need access
So it must be provided via parameters. Yes I know that it becomes very hectic but I one of Google's sample they did this. In Google summit they said that compose must be as independent as possible. For testing, passing a string is better than passing a viewmodel.
If you are following that approach get viewmodel from parameters so that it's not initialised on every recomposition
Viewmodel stays for the lifetime based on the scope...it won't be reinitialised
@@rishabhsaraswat1928 please share the google's sample link