diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 83b173e7..3dfca3ab 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -491,10 +491,12 @@ class MatrixState extends State with WidgetsBindingObserver { store.getItem(SettingKeys.chatColor).then((value) { if (value != null && int.tryParse(value) != null) { AppConfig.colorSchemeSeed = Color(int.parse(value)); - AdaptiveTheme.of(context).setTheme( - light: FluffyThemes.buildTheme(Brightness.light), - dark: FluffyThemes.buildTheme(Brightness.dark), - ); + WidgetsBinding.instance.addPostFrameCallback((_) { + AdaptiveTheme.of(context).setTheme( + light: FluffyThemes.buildTheme(Brightness.light), + dark: FluffyThemes.buildTheme(Brightness.dark), + ); + }); } }); }