How to check if the switch is active from another screen?

Hi, how can I verify that the switch is active from another screen? Example: I inserted the switch in a screen that allows me to activate the dark mode, and i want that when i activate that switch, in all the other screens the dark mode is activated. Thanks to all

When the switch is active store the value to a tiny db and check this value when your screen initialize. Tiny db values are common in all your screens.

2 Likes

Ty working fine :smiley:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.