fix: Settings profile picture
This commit is contained in:
parent
559e5f935e
commit
6d6d6c6f04
2 changed files with 7 additions and 12 deletions
|
|
@ -492,10 +492,12 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
if (value != null && int.tryParse(value) != null) {
|
||||
AppConfig.colorSchemeSeed = Color(int.parse(value));
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
AdaptiveTheme.of(context).setTheme(
|
||||
light: FluffyThemes.buildTheme(Brightness.light),
|
||||
dark: FluffyThemes.buildTheme(Brightness.dark),
|
||||
);
|
||||
if (mounted) {
|
||||
AdaptiveTheme.of(context).setTheme(
|
||||
light: FluffyThemes.buildTheme(Brightness.light),
|
||||
dark: FluffyThemes.buildTheme(Brightness.dark),
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue