forked from yaso_meth/mih-project
BIN
Frontend/images/mzansi_ai-dark.png
Normal file
BIN
Frontend/images/mzansi_ai-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
Frontend/images/mzansi_ai-light.png
Normal file
BIN
Frontend/images/mzansi_ai-light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
@@ -43,6 +43,10 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
||||
setState(() {
|
||||
theme.mode = "Light";
|
||||
});
|
||||
} else if (_themeMode == ThemeMode.dark) {
|
||||
setState(() {
|
||||
theme.mode = "Dark";
|
||||
});
|
||||
} else {
|
||||
setState(() {
|
||||
theme.mode = "Dark";
|
||||
|
||||
@@ -191,6 +191,15 @@ class _TipCalcState extends State<TipCalc> {
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"~ ${double.parse(total).ceil()}.00",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 30,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
),
|
||||
),
|
||||
const Divider(),
|
||||
if (splitBillController.text == "Yes")
|
||||
Row(
|
||||
@@ -226,6 +235,16 @@ class _TipCalcState extends State<TipCalc> {
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
),
|
||||
),
|
||||
if (splitBillController.text == "Yes")
|
||||
Text(
|
||||
"~ ${double.parse(amountPerPerson).ceil()}.00",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 30,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
),
|
||||
),
|
||||
// if (splitBillController.text == "Yes") const Divider(),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -134,6 +134,7 @@ class _MIHHomeState extends State<MIHHome> {
|
||||
|
||||
void setAppsPersonal(List<MIHTile> tileList) {
|
||||
ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage();
|
||||
ImageProvider aiLogo = MzanziInnovationHub.of(context)!.theme.aiLogoImage();
|
||||
tileList.add(MIHTile(
|
||||
videoID: "P2bM9eosJ_A",
|
||||
onTap: () {
|
||||
@@ -233,10 +234,9 @@ class _MIHHomeState extends State<MIHHome> {
|
||||
},
|
||||
tileName: "Mzansi AI",
|
||||
tileIcon: Center(
|
||||
child: FaIcon(
|
||||
FontAwesomeIcons.robot,
|
||||
color: getSec(),
|
||||
size: 180,
|
||||
child: SizedBox(
|
||||
width: 225,
|
||||
child: Image(image: aiLogo),
|
||||
),
|
||||
),
|
||||
// Icon(
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 1.0.3+15
|
||||
version: 1.0.3+16
|
||||
|
||||
environment:
|
||||
sdk: '>=3.5.3 <4.0.0'
|
||||
|
||||
Reference in New Issue
Block a user