theme switching & add AI logo to theme
This commit is contained in:
parent
6dee21aca5
commit
14c901f22e
2 changed files with 16 additions and 0 deletions
|
|
@ -227,6 +227,18 @@ class MyTheme {
|
|||
return loading;
|
||||
}
|
||||
|
||||
AssetImage aiLogoImage() {
|
||||
if (mode == "Dark") {
|
||||
return const AssetImage(
|
||||
'images/mzansi_ai-dark.png',
|
||||
);
|
||||
} else {
|
||||
return const AssetImage(
|
||||
'images/mzansi_ai-light.png',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void setScreenType(double width) {
|
||||
if (width <= 800) {
|
||||
screenType = "mobile";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue