Can someone tell me how to create a favourite button

hey everyone I am making a Joke app in which I have also added a favourite button but now I am unable to figure out how to make it work can someone help me

What are you trying to get it to do. Explain in detail what you are objective is and what you have tried. Detail includes but is not limited to more information then you have already presented.

Store the list of favorite jokes (I mean title of the jokes) in a list through TinyDB.
When it initialize one of them, check is it an item from the list.

1 Like