Building a Shopping List App: Jetpack Compose and Room Database- UI layer

  Рет қаралды 4,757

HoodLab

HoodLab

Күн бұрын

Пікірлер: 22
@saisainghminetun8884
@saisainghminetun8884 7 ай бұрын
Thanks a ton! I'm having difficult time understanding Room DB and this video really helps me alot.
@mudlark26
@mudlark26 Жыл бұрын
Thank you for this tutorial series. I'm new to android studio and it's helping me so much.
@HoodLabs
@HoodLabs Жыл бұрын
You are welcome.
@UriahHeep-gj5jj
@UriahHeep-gj5jj 8 ай бұрын
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.
@HoodLabs
@HoodLabs 8 ай бұрын
Have you tried changing the branch on GitHub it contains all the files.
@junlapunete1602
@junlapunete1602 3 ай бұрын
Please can you provide the complete source code of this tutorial?
@mazighus
@mazighus 6 ай бұрын
It is better to create a final solution for the project to compare it with our project to fix errors
@ubersticks
@ubersticks Жыл бұрын
The resolution of the video is only 360p is that something KZbin takes care of soon?
@HoodLabs
@HoodLabs Жыл бұрын
Yes, sometimes KZbin takes longer to process a video to higher qualities.
@ubersticks
@ubersticks Жыл бұрын
@@HoodLabs All better now -- up to 1080p60 available
@pxhoussem
@pxhoussem 8 ай бұрын
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
@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
@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
@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
@brianduncan3900 Жыл бұрын
The data/items repopulates when app is closed and then reopens. i cannot find a solution to this on stack.
@brianduncan3900
@brianduncan3900 Жыл бұрын
after deleted, it repopulates when app is reopened.
@HoodLabs
@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
@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
@adityarout530 Жыл бұрын
how can i download the assets
@HoodLabs
@HoodLabs Жыл бұрын
What assets everything is used from icons library that is available with jetpack compose.
@adityarout530
@adityarout530 Жыл бұрын
Ic_drinks vegetables drawablrs that are used in util clasd
@HoodLabs
@HoodLabs Жыл бұрын
@@adityarout530 ok you can download the project from github contains all of the necessary data
The Complete Guide to Building AI Agents for Beginners
28:43
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 119 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 95 МЛН
MVVM Architecture in Android Development
15:48
HoodLab
Рет қаралды 511
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 46 М.
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
24:08
Building a scalable, modularized, testable app from scratch
21:31
Android Developers
Рет қаралды 173 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 357 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 119 МЛН