Create new asset folder and add images to it

This commit is contained in:
2025-04-09 10:54:13 +02:00
parent a9ec3e0565
commit dc796612fb
49 changed files with 80 additions and 51 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -248,7 +248,8 @@ class _MihInfoState extends State<MihInfo> {
CircleAvatar(
backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
backgroundImage: const AssetImage("images/founder.jpg"),
backgroundImage: const AssetImage(
"lib/mih_components/mih_package_components/assets/images/founder.jpg"),
//'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'),
radius: 75,
),

View File

@@ -32,7 +32,8 @@ class _BiometricCheckState extends State<BiometricCheck> {
padding: const EdgeInsets.all(10.0),
child: SizedBox(
height: 50,
child: Image.asset('images/logo_light.png'),
child: Image.asset(
'lib/mih_components/mih_package_components/assets/images/logo_light.png'),
),
),
iconSize: 35,

View File

@@ -244,7 +244,8 @@ class _RegisterState extends State<Register> {
padding: const EdgeInsets.all(10.0),
child: SizedBox(
height: 50,
child: Image.asset('images/logo_light.png'),
child: Image.asset(
'lib/mih_components/mih_package_components/assets/images/logo_light.png'),
),
),
iconSize: 35,

View File

@@ -262,7 +262,8 @@ class _ResetPasswordState extends State<ResetPassword> {
padding: const EdgeInsets.all(10.0),
child: SizedBox(
height: 50,
child: Image.asset('images/logo_light.png'),
child: Image.asset(
'lib/mih_components/mih_package_components/assets/images/logo_light.png'),
),
),
iconSize: 35,

View File

@@ -292,7 +292,8 @@ class _SignInState extends State<SignIn> {
padding: const EdgeInsets.all(10.0),
child: SizedBox(
height: 50,
child: Image.asset('images/logo_light.png'),
child: Image.asset(
'lib/mih_components/mih_package_components/assets/images/logo_light.png'),
),
),
iconSize: 35,

View File

@@ -37,7 +37,8 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
ImageProvider<Object>? isPictureAvailable(String url) {
if (url == "") {
return const AssetImage('images/i-dont-know-2.png');
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/i-dont-know-2.png');
} else if (url != "") {
return NetworkImage(url);
} else {

View File

@@ -17,43 +17,62 @@ class _MihCardDisplayState extends State<MihCardDisplay> {
Widget displayLoyaltyCard() {
switch (widget.shopName.toLowerCase()) {
case "apple tree":
return Image.asset('images/loyalty_cards/apple_tree.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/apple_tree.png');
case "best before":
return Image.asset('images/loyalty_cards/best_before.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/best_before.png');
case "checkers":
return Image.asset('images/loyalty_cards/checkers.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/checkers.png');
case "clicks":
return Image.asset('images/loyalty_cards/Clicks_Club.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/Clicks_Club.png');
case "cotton:on":
return Image.asset('images/loyalty_cards/cotton_on_perks.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/cotton_on_perks.png');
case "dis-chem":
return Image.asset('images/loyalty_cards/dischem_benefit.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/dischem_benefit.png');
case "pick n pay":
return Image.asset('images/loyalty_cards/pnp_smart.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/pnp_smart.png');
case "shoprite":
return Image.asset('images/loyalty_cards/shoprite.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/shoprite.png');
case "spar":
return Image.asset('images/loyalty_cards/spar_rewards.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/spar_rewards.png');
case "woolworths":
return Image.asset('images/loyalty_cards/wrewards.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/wrewards.png');
case "makro":
return Image.asset('images/loyalty_cards/makro.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/makro.png');
case "fresh stop":
return Image.asset('images/loyalty_cards/fresh_stop.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/fresh_stop.png');
case "panarottis":
return Image.asset('images/loyalty_cards/panarottis.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/panarottis.png');
case "shell":
return Image.asset('images/loyalty_cards/Shell.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/Shell.png');
case "edgars":
return Image.asset('images/loyalty_cards/edgars.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/edgars.png');
case "jet":
return Image.asset('images/loyalty_cards/jet.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/jet.png');
case "spur":
return Image.asset('images/loyalty_cards/spur.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/spur.png');
case "infinity":
return Image.asset('images/loyalty_cards/infinity.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/infinity.png');
case "eskom":
return Image.asset('images/loyalty_cards/eskom.png');
return Image.asset(
'lib/mih_components/mih_package_components/assets/images/loyalty_cards/eskom.png');
default:
return const Placeholder();
}

View File

@@ -161,11 +161,11 @@ class MihTheme {
AssetImage logoFrame() {
if (mode == "Dark") {
return const AssetImage(
'images/frame_dark.png',
'lib/mih_components/mih_package_components/assets/images/frame_dark.png',
);
} else {
return const AssetImage(
'images/frame_light.png',
'lib/mih_components/mih_package_components/assets/images/frame_light.png',
);
}
}
@@ -173,11 +173,11 @@ class MihTheme {
AssetImage altLogoFrame() {
if (mode == "Light") {
return const AssetImage(
'images/frame_dark.png',
'lib/mih_components/mih_package_components/assets/images/frame_dark.png',
);
} else {
return const AssetImage(
'images/frame_light.png',
'lib/mih_components/mih_package_components/assets/images/frame_light.png',
);
}
}
@@ -185,11 +185,11 @@ class MihTheme {
AssetImage logoImage() {
if (mode == "Dark") {
return const AssetImage(
'images/logo_dark.png',
'lib/mih_components/mih_package_components/assets/images/logo_dark.png',
);
} else {
return const AssetImage(
'images/logo_light.png',
'lib/mih_components/mih_package_components/assets/images/logo_light.png',
);
}
}
@@ -197,11 +197,11 @@ class MihTheme {
AssetImage altLogoImage() {
if (mode == "Light") {
return const AssetImage(
'images/logo_dark.png',
'lib/mih_components/mih_package_components/assets/images/logo_dark.png',
);
} else {
return const AssetImage(
'images/logo_light.png',
'lib/mih_components/mih_package_components/assets/images/logo_light.png',
);
}
}
@@ -209,11 +209,11 @@ class MihTheme {
AssetImage loadingImage() {
if (mode == "Dark") {
loading = const AssetImage(
'images/loading_light.gif',
'lib/mih_components/mih_package_components/assets/images/loading_light.gif',
);
} else {
loading = const AssetImage(
'images/loading_dark.gif',
'lib/mih_components/mih_package_components/assets/images/loading_dark.gif',
);
}
return loading;
@@ -222,11 +222,11 @@ class MihTheme {
AssetImage altLoadingImage() {
if (mode == "Dark") {
loading = const AssetImage(
'images/loading_dark.gif',
'lib/mih_components/mih_package_components/assets/images/loading_dark.gif',
);
} else {
loading = const AssetImage(
'images/loading_light.gif',
'lib/mih_components/mih_package_components/assets/images/loading_light.gif',
);
}
return loading;
@@ -234,18 +234,22 @@ class MihTheme {
String loadingImageLocation() {
if (mode == "Dark") {
loadingAssetText = 'images/loading_light.gif';
loadingAssetText =
'lib/mih_components/mih_package_components/assets/images/loading_light.gif';
} else {
loadingAssetText = 'images/loading_dark.gif';
loadingAssetText =
'lib/mih_components/mih_package_components/assets/images/loading_dark.gif';
}
return loadingAssetText;
}
String altLoadingImageLocation() {
if (mode == "Dark") {
loadingAssetText = 'images/loading_dark.gif';
loadingAssetText =
'lib/mih_components/mih_package_components/assets/images/loading_dark.gif';
} else {
loadingAssetText = 'images/loading_light.gif';
loadingAssetText =
'lib/mih_components/mih_package_components/assets/images/loading_light.gif';
}
return loadingAssetText;
}
@@ -253,11 +257,11 @@ class MihTheme {
AssetImage aiLogoImage() {
if (mode == "Dark") {
return const AssetImage(
'images/mzansi_ai-dark.png',
'lib/mih_components/mih_package_components/assets/images/mzansi_ai-dark.png',
);
} else {
return const AssetImage(
'images/mzansi_ai-light.png',
'lib/mih_components/mih_package_components/assets/images/mzansi_ai-light.png',
);
}
}