Hi,
I make a list like job update, when i post new it will be added in this list automatically through firebase.
Now I add a wishlist button beside each post, when any user click on this, it will add in tinydb with specific value.
Now I want to show the wishlist on a new screen, where i will show the user how many wishlist he has created & if he click on wishlist icon again wishlisted job will be removed.
Pls tell me how I can make this type wish list.??
1 Like
when user click on wisht list
call tinydb with tag userwishlist into a local list
add items to the this local list with user clicked item
save this local list value into tinydb with the same tag
in another screen , drag tinydb and use the same namespace as used in the scrren1.
show the details in listview or anyother things.
when user click on the populated item, get the index value.
call the tinydb again on the local list
remove the item from this local list with the above index
again save the tiny b with the same local list in the same tag,
and again recreate the population
I read your reply, but i am confused which block and how to do this,
As i am a learner, can you please give me block example.
have you tried anything? i do not know how you populate the items? native component or dynamic component?. so without knowing your structure it is hard to suggest blocks except the logic
I try to make a wish list, but i am making it manually, it takes lots of block, and it will not show all wishlist.
your method will clear the whole fav item. imagine if user clicked multiple items then what will happen?
yes, pls guide me, if user add 50-60 wishlist jobs, then how can i show it & need wishlist icon beside each job list & if user click on it , this job will clear from withlist.
below ss from job list page, i want similar screen for wish list.