remove unused images

This commit is contained in:
2025-08-01 11:37:00 +02:00
parent edb3244dd8
commit 77d5c8bc69
13 changed files with 49 additions and 129 deletions

View File

@@ -71,8 +71,6 @@ class _MzansiInnovationHubState extends State<MzansiInnovationHub> {
double width = MediaQuery.sizeOf(context).width;
theme.setScreenType(width);
precacheImage(theme.loadingImage(), context);
precacheImage(theme.logoImage(), context);
precacheImage(theme.logoFrame(), context);
return MaterialApp(
title: getTitle(),
themeMode: ThemeMode.dark,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -163,54 +163,6 @@ class MihTheme {
}
}
AssetImage logoFrame() {
if (mode == "Dark") {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/frame_dark.png',
);
} else {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/frame_light.png',
);
}
}
AssetImage altLogoFrame() {
if (mode == "Light") {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/frame_dark.png',
);
} else {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/frame_light.png',
);
}
}
AssetImage logoImage() {
if (mode == "Dark") {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/logo_dark.png',
);
} else {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/logo_light.png',
);
}
}
AssetImage altLogoImage() {
if (mode == "Light") {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/logo_dark.png',
);
} else {
return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/logo_light.png',
);
}
}
AssetImage loadingImage() {
if (mode == "Dark") {
loading = const AssetImage(

View File

@@ -47,8 +47,6 @@ class _MihInfoState extends State<MihInfo> {
bio += "(University of the Western Cape)\n";
bio +=
"6 Year of banking experience with one of the big 5 banks of South Africa.";
ImageProvider logoFrame =
MzansiInnovationHub.of(context)!.theme.altLogoFrame();
return Wrap(
alignment: WrapAlignment.center,
crossAxisAlignment: WrapCrossAlignment.center,
@@ -61,18 +59,22 @@ class _MihInfoState extends State<MihInfo> {
alignment: Alignment.center,
fit: StackFit.loose,
children: [
CircleAvatar(
backgroundColor:
MzansiInnovationHub.of(context)!.theme.primaryColor(),
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,
Padding(
padding: const EdgeInsets.only(left: 4.0),
child: CircleAvatar(
backgroundColor:
MzansiInnovationHub.of(context)!.theme.primaryColor(),
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,
),
),
Icon(
MihIcons.mihRing,
size: 165,
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
SizedBox(
width: 165,
child: Image(image: logoFrame),
)
],
),
),

View File

@@ -61,35 +61,6 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
backgroundColor:
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
// MIHProfilePicture(
// profilePictureFile: widget.propicFile,
// proPicController: proPicController,
// proPic: null,
// width: 60,
// radius: 27,
// drawerMode: true,
// editable: false,
// frameColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// onChange: (newProPic) {},
// ),
// Stack(
// alignment: Alignment.center,
// fit: StackFit.loose,
// children: [
// CircleAvatar(
// backgroundColor:
// MzansiInnovationHub.of(context)!.theme.primaryColor(),
// backgroundImage: widget.propicFile,
// //'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'),
// radius: 27,
// ),
// SizedBox(
// width: 60,
// child: Image(image: logoFrame),
// )
// ],
// ),
);
}

View File

@@ -86,24 +86,22 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
// );
void setAppsNewPersonal(List<MIHTile> tileList) {
ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
if (widget.signedInUser.fname == "") {
tileList.add(MIHTile(
videoID: "jFV3NN65DtQ",
onTap: () {
Navigator.of(context).pushNamed('/mzansi-profile',
arguments: AppProfileUpdateArguments(
widget.signedInUser, widget.propicFile));
},
tileName: "Setup Profie",
tileIcon: Padding(
padding: const EdgeInsets.all(15.0),
child: Image(image: logo),
),
p: getPrim(),
s: getSec(),
));
// tileList.add(MIHTile(
// videoID: "jFV3NN65DtQ",
// onTap: () {
// Navigator.of(context).pushNamed('/mzansi-profile',
// arguments: AppProfileUpdateArguments(
// widget.signedInUser, widget.propicFile));
// },
// tileName: "Setup Profie",
// tileIcon: Padding(
// padding: const EdgeInsets.all(15.0),
// child: Image(image: logo),
// ),
// p: getPrim(),
// s: getSec(),
// ));
}
}
@@ -128,27 +126,26 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
}
void setAppsPersonal(List<MIHTile> tileList) {
ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
ImageProvider aiLogo = MzansiInnovationHub.of(context)!.theme.aiLogoImage();
tileList.add(MIHTile(
videoID: "P2bM9eosJ_A",
onTap: () {
Navigator.of(context).pushNamed(
'/mzansi-profile',
arguments: AppProfileUpdateArguments(
widget.signedInUser,
widget.propicFile,
),
);
},
tileName: "Mzansi Profile",
tileIcon: Padding(
padding: const EdgeInsets.all(15.0),
child: Image(image: logo),
),
p: getPrim(),
s: getSec(),
));
// tileList.add(MIHTile(
// videoID: "P2bM9eosJ_A",
// onTap: () {
// Navigator.of(context).pushNamed(
// '/mzansi-profile',
// arguments: AppProfileUpdateArguments(
// widget.signedInUser,
// widget.propicFile,
// ),
// );
// },
// tileName: "Mzansi Profile",
// tileIcon: Padding(
// padding: const EdgeInsets.all(15.0),
// child: Image(image: logo),
// ),
// p: getPrim(),
// s: getSec(),
// ));
tileList.add(MIHTile(
videoID: "6l8h0sjt08k",
onTap: () {