You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional context
When I changed the theme, I changed the color, but when I restarted the app, I found that the set color had disappeared.
Through the README, I found that I can use isDefault when setting the theme, but I did not find this parameter in the latest version. How can I save the color I set, and when restarting the APP, I hope to display the color I set.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Adaptive theme does not persist your theme configuration(your ThemeData object) across app restarts. It is not possible to recreate the last ThemeData object that was used as current theme.
In your case, you are changing theme after initialization. You can persist that action yourself (just store say, a bool in shared preferences that indicates that a different theme was used) and can retrieve this information on initialization and use it to pass correct theme in your MaterialApp initialization.
Describe the bug
Restart the app and customize the color to disappear.
To Reproduce
Steps to reproduce the behavior:
1.
...
colorSchemeSeed: Colors.green
, not workAdditional context
When I changed the theme, I changed the color, but when I restarted the app, I found that the set color had disappeared.
Through the README, I found that I can use
isDefault
when setting the theme, but I did not find this parameter in the latest version. How can I save the color I set, and when restarting the APP, I hope to display the color I set.Thanks a lot.
The text was updated successfully, but these errors were encountered: