I am sure this is a FAQ, but I am struggling on how to change the color of a button and keep it saved for next time when i reopen the app.
I am attempting to make a soundboard, and I know how to change the colour of the buttons with clicks and long presses, what I don't know is how to keep those changes saved afterward. If i close and reopen any page or the app itself, the colours go back to the original button colours making itdifficult tokeep trackof my favourite sounds. I am developing an app for my mute friend with over 150 sounds.
So what I am asking is how to SAVE the colour changes made. The operation is very simple. When Button1 is longclicked, the colour is changed from gray to orange, as a sort of favorite, longpressing this button again returns the original colour. How would I save these changes using tinydb? (See Fig1) Mind you, I am very new to the app developer, and any help is appreciated! Thank you