mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-19 03:35:12 +00:00
fix: Set theme after start app
This commit is contained in:
parent
2500e74d7e
commit
751cf75384
1 changed files with 6 additions and 4 deletions
|
@ -491,10 +491,12 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
||||||
store.getItem(SettingKeys.chatColor).then((value) {
|
store.getItem(SettingKeys.chatColor).then((value) {
|
||||||
if (value != null && int.tryParse(value) != null) {
|
if (value != null && int.tryParse(value) != null) {
|
||||||
AppConfig.colorSchemeSeed = Color(int.parse(value));
|
AppConfig.colorSchemeSeed = Color(int.parse(value));
|
||||||
AdaptiveTheme.of(context).setTheme(
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
light: FluffyThemes.buildTheme(Brightness.light),
|
AdaptiveTheme.of(context).setTheme(
|
||||||
dark: FluffyThemes.buildTheme(Brightness.dark),
|
light: FluffyThemes.buildTheme(Brightness.light),
|
||||||
);
|
dark: FluffyThemes.buildTheme(Brightness.dark),
|
||||||
|
);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue