new get loading image theme function
This commit is contained in:
@@ -10,6 +10,7 @@ class MyTheme {
|
|||||||
late String mode;
|
late String mode;
|
||||||
late String screenType;
|
late String screenType;
|
||||||
late AssetImage loading;
|
late AssetImage loading;
|
||||||
|
late String loadingAssetText;
|
||||||
late TargetPlatform platform;
|
late TargetPlatform platform;
|
||||||
bool kIsWeb = const bool.fromEnvironment('dart.library.js_util');
|
bool kIsWeb = const bool.fromEnvironment('dart.library.js_util');
|
||||||
// Options:-
|
// Options:-
|
||||||
@@ -227,6 +228,24 @@ class MyTheme {
|
|||||||
return loading;
|
return loading;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String loadingImageLocation() {
|
||||||
|
if (mode == "Dark") {
|
||||||
|
loadingAssetText = 'images/loading_light.gif';
|
||||||
|
} else {
|
||||||
|
loadingAssetText = 'images/loading_dark.gif';
|
||||||
|
}
|
||||||
|
return loadingAssetText;
|
||||||
|
}
|
||||||
|
|
||||||
|
String altLoadingImageLocation() {
|
||||||
|
if (mode == "Dark") {
|
||||||
|
loadingAssetText = 'images/loading_dark.gif';
|
||||||
|
} else {
|
||||||
|
loadingAssetText = 'images/loading_light.gif';
|
||||||
|
}
|
||||||
|
return loadingAssetText;
|
||||||
|
}
|
||||||
|
|
||||||
AssetImage aiLogoImage() {
|
AssetImage aiLogoImage() {
|
||||||
if (mode == "Dark") {
|
if (mode == "Dark") {
|
||||||
return const AssetImage(
|
return const AssetImage(
|
||||||
|
|||||||
Reference in New Issue
Block a user