Here is what I designed as an action:
- first checks if the AppState is darkmode.
if it is NOT (false) then set it to true, and set the dark mode value to true
if it true, (dark mode), then change it to false, and set the dark mode value to false
Rinse an repeat each time I press the toggle, but it doesn't seem to work, it only works in one direction: