Add loading gif for app

This commit is contained in:
2024-08-12 10:41:22 +02:00
parent ded43453a9
commit f1e2b58cd1
18 changed files with 135 additions and 69 deletions

View File

@@ -7,7 +7,7 @@ class MyTheme {
late int _succColor;
late int _mesColor;
late String mode;
late Image loading;
late AssetImage loading;
// Options:-
// f3f9d2 = Cream
@@ -115,16 +115,14 @@ class MyTheme {
}
}
Image loadingImage() {
AssetImage loadingImage() {
if (mode == "Dark") {
loading = Image.asset(
loading = const AssetImage(
'images/loading2.gif',
width: 100,
);
} else {
loading = Image.asset(
loading = const AssetImage(
'images/loading1.gif',
width: 100,
);
}
return loading;