How to implement add favorite feature for recipes app using firebase and flutter? #7021
Unanswered
mohamadnadim12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to implement to add favorite features for recipes app using firebase and flutter.
I made 2 models first one is RecipeModel and the second is FavoriteRecipeModel
All contain the data about the recipes but the FavoriteRecipeModel has boolean var for update the value when the user clicks the button from false to true and I want save the favorite by the id of the user.
Idea: When the user press button all data of the recipe will be transformed to favouriteDataCollection and the button will be a toggle in the same button that will also remove the recipes from favouriteDataCollection
Beta Was this translation helpful? Give feedback.
All reactions