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(() {
|
setState(() {
|
||||||
theme.mode = "Light";
|
theme.mode = "Light";
|
||||||
});
|
});
|
||||||
|
} else if (_themeMode == ThemeMode.dark) {
|
||||||
|
setState(() {
|
||||||
|
theme.mode = "Dark";
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
setState(() {
|
setState(() {
|
||||||
theme.mode = "Dark";
|
theme.mode = "Dark";
|
||||||
|
|||||||
@@ -191,6 +191,15 @@ class _TipCalcState extends State<TipCalc> {
|
|||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
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(),
|
const Divider(),
|
||||||
if (splitBillController.text == "Yes")
|
if (splitBillController.text == "Yes")
|
||||||
Row(
|
Row(
|
||||||
@@ -226,6 +235,16 @@ class _TipCalcState extends State<TipCalc> {
|
|||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
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(),
|
// if (splitBillController.text == "Yes") const Divider(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ class _MIHHomeState extends State<MIHHome> {
|
|||||||
|
|
||||||
void setAppsPersonal(List<MIHTile> tileList) {
|
void setAppsPersonal(List<MIHTile> tileList) {
|
||||||
ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage();
|
ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage();
|
||||||
|
ImageProvider aiLogo = MzanziInnovationHub.of(context)!.theme.aiLogoImage();
|
||||||
tileList.add(MIHTile(
|
tileList.add(MIHTile(
|
||||||
videoID: "P2bM9eosJ_A",
|
videoID: "P2bM9eosJ_A",
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -233,10 +234,9 @@ class _MIHHomeState extends State<MIHHome> {
|
|||||||
},
|
},
|
||||||
tileName: "Mzansi AI",
|
tileName: "Mzansi AI",
|
||||||
tileIcon: Center(
|
tileIcon: Center(
|
||||||
child: FaIcon(
|
child: SizedBox(
|
||||||
FontAwesomeIcons.robot,
|
width: 225,
|
||||||
color: getSec(),
|
child: Image(image: aiLogo),
|
||||||
size: 180,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Icon(
|
// Icon(
|
||||||
|
|||||||
@@ -227,6 +227,18 @@ class MyTheme {
|
|||||||
return loading;
|
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) {
|
void setScreenType(double width) {
|
||||||
if (width <= 800) {
|
if (width <= 800) {
|
||||||
screenType = "mobile";
|
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
|
# 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
|
# 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.
|
# 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:
|
environment:
|
||||||
sdk: '>=3.5.3 <4.0.0'
|
sdk: '>=3.5.3 <4.0.0'
|
||||||
|
|||||||
Reference in New Issue
Block a user