profile Picture fix

This commit is contained in:
2024-08-28 20:41:31 +02:00
parent 5d67e2549f
commit 4fc7f31943
3 changed files with 42 additions and 59 deletions

View File

@@ -164,6 +164,19 @@ class MyTheme {
return loading;
}
AssetImage altLoadingImage() {
if (mode == "Dark") {
loading = const AssetImage(
'images/loading_dark.gif',
);
} else {
loading = const AssetImage(
'images/loading_light.gif',
);
}
return loading;
}
Color primaryColor() {
if (mode == "Dark") {
_mainColor = 0XFF3A4454;