Thanks a ton! I'm having difficult time understanding Room DB and this video really helps me alot.
@mudlark26 Жыл бұрын
Thank you for this tutorial series. I'm new to android studio and it's helping me so much.
@HoodLabs Жыл бұрын
You are welcome.
@UriahHeep-gj5jj8 ай бұрын
The tutorial is very good. It includes a lot of details and features that you make seem easy. Now since this tutorial is close to a year old and being that Kotlin is a such a dynamic language, there are parts that are tricky, and much patience is needed. The depository in Github is very helpful to verify the accuracy of the code input; however there seems to be files missing. Would it be too much to ask, to verify that all the files are present in Github, please? And thank you again for your dedication to the propagation of Android development.
@HoodLabs8 ай бұрын
Have you tried changing the branch on GitHub it contains all the files.
@junlapunete16023 ай бұрын
Please can you provide the complete source code of this tutorial?
@mazighus6 ай бұрын
It is better to create a final solution for the project to compare it with our project to fix errors
@ubersticks Жыл бұрын
The resolution of the video is only 360p is that something KZbin takes care of soon?
@HoodLabs Жыл бұрын
Yes, sometimes KZbin takes longer to process a video to higher qualities.
@ubersticks Жыл бұрын
@@HoodLabs All better now -- up to 1080p60 available
@pxhoussem8 ай бұрын
I don't understand where is the data coming from ?! he created the data layer and the ui later but from where is the data being filled?
@ubersticks Жыл бұрын
At 44:06 you are creating addListItem() but using Category id and title as if they are ShoppingList id and name -- very confusing to me. Maybe you fix this later, but it seems strange at this time.
@HoodLabs Жыл бұрын
When you look at the models we have a shopping list, item and store so the first represent a bucket containing items to shop i.e electronics category saved as a shopping list bucket contains items for phone,Tv, radio and etc thus we use the id for a category to save it as shopping list id.
@HoodLabs Жыл бұрын
So the categories is hard coded for simplicity you can make it dynamic so users can create their own shopping list(bucket) as how we have done on stores users add them.
@brianduncan3900 Жыл бұрын
The data/items repopulates when app is closed and then reopens. i cannot find a solution to this on stack.
@brianduncan3900 Жыл бұрын
after deleted, it repopulates when app is reopened.
@HoodLabs Жыл бұрын
I think you're not deleting the data directly from database so you're just removing them from the state when swiping it will be repopulated from database. Check that your calling from a method to delete from your repository is calling a method from the Dao.
@brianduncan3900 Жыл бұрын
@@HoodLabs Dao @Delete suspend fun delete(item: Item) repository suspend fun deleteItem(item: Item) { itemDao.delete(item) } homeviewmodel fun deleteItem(item: Item) { viewModelScope.launch(Dispatchers.IO) { repository.deleteItem(item) } home items(homeState.items) { val dismissState = rememberDismissState( confirmStateChange = {value -> if (value == DismissValue.DismissedToEnd){ homeViewModel.deleteItem(it.item) } true } ) SwipeToDismiss(state = dismissState, background = { Surface(modifier = Modifier.fillMaxWidth(), color = Color.Red) { } }, dismissContent = { ShoppingItems( item = it, isChecked = it.item.isChecked, onCheckedChange = homeViewModel::onItemCheckedChange ) { onNavigate.invoke(it.item.id)
@adityarout530 Жыл бұрын
how can i download the assets
@HoodLabs Жыл бұрын
What assets everything is used from icons library that is available with jetpack compose.
@adityarout530 Жыл бұрын
Ic_drinks vegetables drawablrs that are used in util clasd
@HoodLabs Жыл бұрын
@@adityarout530 ok you can download the project from github contains all of the necessary data