remove unused images
@@ -71,8 +71,6 @@ class _MzansiInnovationHubState extends State<MzansiInnovationHub> {
|
|||||||
double width = MediaQuery.sizeOf(context).width;
|
double width = MediaQuery.sizeOf(context).width;
|
||||||
theme.setScreenType(width);
|
theme.setScreenType(width);
|
||||||
precacheImage(theme.loadingImage(), context);
|
precacheImage(theme.loadingImage(), context);
|
||||||
precacheImage(theme.logoImage(), context);
|
|
||||||
precacheImage(theme.logoFrame(), context);
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: getTitle(),
|
title: getTitle(),
|
||||||
themeMode: ThemeMode.dark,
|
themeMode: ThemeMode.dark,
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 54 KiB |
@@ -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() {
|
AssetImage loadingImage() {
|
||||||
if (mode == "Dark") {
|
if (mode == "Dark") {
|
||||||
loading = const AssetImage(
|
loading = const AssetImage(
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ class _MihInfoState extends State<MihInfo> {
|
|||||||
bio += "(University of the Western Cape)\n";
|
bio += "(University of the Western Cape)\n";
|
||||||
bio +=
|
bio +=
|
||||||
"6 Year of banking experience with one of the big 5 banks of South Africa.";
|
"6 Year of banking experience with one of the big 5 banks of South Africa.";
|
||||||
ImageProvider logoFrame =
|
|
||||||
MzansiInnovationHub.of(context)!.theme.altLogoFrame();
|
|
||||||
return Wrap(
|
return Wrap(
|
||||||
alignment: WrapAlignment.center,
|
alignment: WrapAlignment.center,
|
||||||
crossAxisAlignment: WrapCrossAlignment.center,
|
crossAxisAlignment: WrapCrossAlignment.center,
|
||||||
@@ -61,18 +59,22 @@ class _MihInfoState extends State<MihInfo> {
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
fit: StackFit.loose,
|
fit: StackFit.loose,
|
||||||
children: [
|
children: [
|
||||||
CircleAvatar(
|
Padding(
|
||||||
backgroundColor:
|
padding: const EdgeInsets.only(left: 4.0),
|
||||||
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
child: CircleAvatar(
|
||||||
backgroundImage: const AssetImage(
|
backgroundColor:
|
||||||
"lib/mih_components/mih_package_components/assets/images/founder.jpg"),
|
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
//'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'),
|
backgroundImage: const AssetImage(
|
||||||
radius: 75,
|
"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),
|
|
||||||
)
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -61,35 +61,6 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
|||||||
backgroundColor:
|
backgroundColor:
|
||||||
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
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),
|
|
||||||
// )
|
|
||||||
// ],
|
|
||||||
// ),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,24 +86,22 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
void setAppsNewPersonal(List<MIHTile> tileList) {
|
void setAppsNewPersonal(List<MIHTile> tileList) {
|
||||||
ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
|
|
||||||
|
|
||||||
if (widget.signedInUser.fname == "") {
|
if (widget.signedInUser.fname == "") {
|
||||||
tileList.add(MIHTile(
|
// tileList.add(MIHTile(
|
||||||
videoID: "jFV3NN65DtQ",
|
// videoID: "jFV3NN65DtQ",
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
Navigator.of(context).pushNamed('/mzansi-profile',
|
// Navigator.of(context).pushNamed('/mzansi-profile',
|
||||||
arguments: AppProfileUpdateArguments(
|
// arguments: AppProfileUpdateArguments(
|
||||||
widget.signedInUser, widget.propicFile));
|
// widget.signedInUser, widget.propicFile));
|
||||||
},
|
// },
|
||||||
tileName: "Setup Profie",
|
// tileName: "Setup Profie",
|
||||||
tileIcon: Padding(
|
// tileIcon: Padding(
|
||||||
padding: const EdgeInsets.all(15.0),
|
// padding: const EdgeInsets.all(15.0),
|
||||||
child: Image(image: logo),
|
// child: Image(image: logo),
|
||||||
),
|
// ),
|
||||||
p: getPrim(),
|
// p: getPrim(),
|
||||||
s: getSec(),
|
// s: getSec(),
|
||||||
));
|
// ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,27 +126,26 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setAppsPersonal(List<MIHTile> tileList) {
|
void setAppsPersonal(List<MIHTile> tileList) {
|
||||||
ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
|
|
||||||
ImageProvider aiLogo = MzansiInnovationHub.of(context)!.theme.aiLogoImage();
|
ImageProvider aiLogo = MzansiInnovationHub.of(context)!.theme.aiLogoImage();
|
||||||
tileList.add(MIHTile(
|
// tileList.add(MIHTile(
|
||||||
videoID: "P2bM9eosJ_A",
|
// videoID: "P2bM9eosJ_A",
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
Navigator.of(context).pushNamed(
|
// Navigator.of(context).pushNamed(
|
||||||
'/mzansi-profile',
|
// '/mzansi-profile',
|
||||||
arguments: AppProfileUpdateArguments(
|
// arguments: AppProfileUpdateArguments(
|
||||||
widget.signedInUser,
|
// widget.signedInUser,
|
||||||
widget.propicFile,
|
// widget.propicFile,
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
tileName: "Mzansi Profile",
|
// tileName: "Mzansi Profile",
|
||||||
tileIcon: Padding(
|
// tileIcon: Padding(
|
||||||
padding: const EdgeInsets.all(15.0),
|
// padding: const EdgeInsets.all(15.0),
|
||||||
child: Image(image: logo),
|
// child: Image(image: logo),
|
||||||
),
|
// ),
|
||||||
p: getPrim(),
|
// p: getPrim(),
|
||||||
s: getSec(),
|
// s: getSec(),
|
||||||
));
|
// ));
|
||||||
tileList.add(MIHTile(
|
tileList.add(MIHTile(
|
||||||
videoID: "6l8h0sjt08k",
|
videoID: "6l8h0sjt08k",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|||||||