In this example tap menu i created a simulated night mode function.
There are a lots of blocks that the apps need to run correct.
Don’t delete or change any block if you’re not sure.
- swipe to change the page
- enable night mode
- disable night mode
- store the selected mode in a tinydb on the device (the app loads after restart the last mode)
The rights of the used pictures in this example remain with the original owner.