feat: System Theme Mode
Description
Our app now features a system theme mode, which will listen automatically to the changes in the system theme mode and apply that.
Fixes #427
Screenrecording
https://github.com/CCExtractor/ultimate_alarm_clock/assets/22213675/c574f23d-1ec0-43bb-8295-a88e68130a06
Checklist
- [x] Code follows the established coding style guidelines
- [x] All tests are passing
@MarkisDev , I have made the changes. Now our app only looks for the system theme on the initial. No more periodic checks.
When we directly retrieve the themes using existing method, system mode is not working properly. It is not change the entire widget. So what I did was, I made a systemenabled variable, after that I do a brightness check to find out if its dark or light. And apply the theme as theme.dark, at the same time maintaining the dropdown option as System,
This is the most optimal method for now.