I created a page that has a series of buttons that change color as you tap them. I would like the tap selection to be retained if I go from that screen to another and then return. Unfortunately, every time I leave the page and then reload it, it starts from scratch by doing a reset. How can I avoid this problem?
Use a tinydb to store the colour values for each button to be loaded when the screen initialises.
It's not just a simple color change. In reality, an image has been loaded onto the buttons and when you touch them, another different image takes over
Same approach would apply
Thank you for your suggestions, I solved it
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.