Reputation: 35
I want to create these two tasks with a single variable, like, if the system mode is on light mode but the user changes the mode of application in dark mode...and also if the system is on dark mode then the application is automatically converted into dark mode.
Upvotes: 1
Views: 805
Reputation: 29
There's a plugin for that on pub.dev called theme_provider. Have you tried it? You can add it to your pubspec.yaml file.
Upvotes: 0