Help i want to know how can i change text and background color before i click the button, when i click the button one more time

if i click the button, background color and text will be change.
how can i make it if i click the button one more time, it will be back?

image

Hey @vielglucklifeyqi :wave: Welcome!!

Sounds like you’re trying to make a toggle.

Take a look at our sample app “Toggl” to learn how to do this with a button:

1 Like