Merge pull request #48 from yaso-meth/Testing-fixes

Testing-fixes
This commit is contained in:
yaso-meth
2025-01-27 12:56:40 +02:00
committed by GitHub
7 changed files with 40 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -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";

View File

@@ -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(),
],
),

View File

@@ -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(

View File

@@ -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";

View File

@@ -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'