Use Mih Color Green

This commit is contained in:
2025-08-14 09:54:00 +02:00
parent 3b669bceac
commit 6ba3da6368
45 changed files with 178 additions and 252 deletions

View File

@@ -104,14 +104,12 @@ class _PackageToolOneState extends State<PackageToolOne> {
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
),
label: "Show New Window",
labelBackgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
labelBackgroundColor: MihColors.getGreenColor(context),
labelStyle: TextStyle(
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
backgroundColor: MihColors.getGreenColor(context),
onTap: () {
// showTestWindow();
},
@@ -694,8 +692,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
onPressed: () {
print("Button Pressed");
},
buttonColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
@@ -824,15 +821,13 @@ class _PackageToolOneState extends State<PackageToolOne> {
MzansiInnovationHub.of(context)!.theme.primaryColor(),
),
label: "Show New Window",
labelBackgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
labelBackgroundColor: MihColors.getGreenColor(context),
labelStyle: TextStyle(
color:
MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
backgroundColor: MihColors.getGreenColor(context),
onTap: () {
showTestWindow();
},
@@ -844,15 +839,13 @@ class _PackageToolOneState extends State<PackageToolOne> {
MzansiInnovationHub.of(context)!.theme.primaryColor(),
),
label: "Show New Full Window",
labelBackgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
labelBackgroundColor: MihColors.getGreenColor(context),
labelStyle: TextStyle(
color:
MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
backgroundColor: MihColors.getGreenColor(context),
onTap: () {
showTestFullWindow();
},

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
import '../../../main.dart';
import 'package:table_calendar/table_calendar.dart';
@@ -64,7 +65,7 @@ class _MIHCalendarState extends State<MIHCalendar> {
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
),
todayDecoration: BoxDecoration(
color: MzansiInnovationHub.of(context)!.theme.successColor(),
color: MihColors.getGreenColor(context),
shape: BoxShape.circle,
),
selectedTextStyle: TextStyle(

View File

@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_speed_dial/flutter_speed_dial.dart';
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
class MihFloatingMenu extends StatefulWidget {
final IconData? icon;
@@ -30,7 +31,7 @@ class _MihFloatingMenuState extends State<MihFloatingMenu> {
animatedIcon: widget.animatedIcon,
direction: widget.direction ?? SpeedDialDirection.up,
activeIcon: Icons.close,
backgroundColor: MzansiInnovationHub.of(context)!.theme.successColor(),
backgroundColor: MihColors.getGreenColor(context),
activeBackgroundColor:
MzansiInnovationHub.of(context)!.theme.errorColor(),
foregroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
class MihToggle extends StatefulWidget {
final String hintText;
@@ -79,7 +80,7 @@ class _MihToggleState extends State<MihToggle> {
widget.readOnly == true ? Colors.grey : widget.secondaryFillColor,
activeTrackColor: widget.readOnly == true
? Colors.grey.shade400
: MzansiInnovationHub.of(context)!.theme.successColor(),
: MihColors.getGreenColor(context),
inactiveThumbColor:
widget.readOnly == true ? Colors.grey : widget.secondaryFillColor,
inactiveTrackColor: widget.readOnly == true

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_button.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
import '../../main.dart';
class MIHSuccessMessage extends StatefulWidget {
@@ -61,9 +62,8 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
decoration: BoxDecoration(
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0),
border: Border.all(
color: MzansiInnovationHub.of(context)!.theme.successColor(),
width: 5.0),
border:
Border.all(color: MihColors.getGreenColor(context), width: 5.0),
),
child: Column(
mainAxisSize: MainAxisSize.min,
@@ -71,14 +71,14 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
Icon(
Icons.check_circle_outline_rounded,
size: popUpIconSize,
color: MzansiInnovationHub.of(context)!.theme.successColor(),
color: MihColors.getGreenColor(context),
),
//const SizedBox(height: 15),
Text(
"Success!",
textAlign: TextAlign.center,
style: TextStyle(
color: MzansiInnovationHub.of(context)!.theme.successColor(),
color: MihColors.getGreenColor(context),
fontSize: popUpTitleSize,
fontWeight: FontWeight.bold,
),
@@ -100,8 +100,7 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
onPressed: () {
Navigator.pop(context);
},
buttonColor:
MzansiInnovationHub.of(context)!.theme.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Text(
"Dismiss",