mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 10:39:26 +01:00
fix: Settings profile picture
This commit is contained in:
parent
5d89f05676
commit
42446a8858
@ -47,19 +47,12 @@ class ContentBanner extends StatelessWidget {
|
|||||||
return Hero(
|
return Hero(
|
||||||
tag: heroTag,
|
tag: heroTag,
|
||||||
child: MxcImage(
|
child: MxcImage(
|
||||||
|
key: Key(mxContent?.toString() ?? 'NoKey'),
|
||||||
uri: mxContent,
|
uri: mxContent,
|
||||||
animated: true,
|
animated: true,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
height: 400,
|
height: 400,
|
||||||
width: 800,
|
width: 800,
|
||||||
placeholder: (c) => Center(
|
|
||||||
child: Icon(
|
|
||||||
defaultIcon,
|
|
||||||
size: 200,
|
|
||||||
color:
|
|
||||||
Theme.of(context).colorScheme.onSecondaryContainer,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
@ -492,10 +492,12 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
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));
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
AdaptiveTheme.of(context).setTheme(
|
if (mounted) {
|
||||||
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 New Issue
Block a user