Use Mih Color Red

This commit is contained in:
2025-08-14 09:58:28 +02:00
parent 6ba3da6368
commit 726c6f5213
46 changed files with 181 additions and 236 deletions

View File

@@ -1,6 +1,7 @@
import 'dart:convert';
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
import 'package:mzansi_innovation_hub/mih_services/mih_service_calls.dart';
import 'package:mzansi_innovation_hub/mih_services/mih_validation_services.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_button.dart';
@@ -283,16 +284,14 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
"Important Notice: Requesting Patient Profile Access",
style: TextStyle(
fontWeight: FontWeight.bold,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
Text(
"You are about to request access to a patient's profile. Please be aware of the following important points:",
style: TextStyle(
fontWeight: FontWeight.normal,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
SizedBox(
@@ -301,8 +300,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
"1. Permanent Access: Once the patient accepts your access request, it will become permanent.",
style: TextStyle(
fontWeight: FontWeight.normal,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
),
@@ -312,8 +310,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
"2. Shared Information: Any updates you make to the patient's profile will be visible to others who have access to the profile.",
style: TextStyle(
fontWeight: FontWeight.normal,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
),
@@ -323,8 +320,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
"3. Irreversible Access: Once granted, you cannot revoke your access to the patient's profile.",
style: TextStyle(
fontWeight: FontWeight.normal,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
),
@@ -332,8 +328,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
"By pressing the \"Request Access\" button you accept the above terms.\n",
style: TextStyle(
fontWeight: FontWeight.bold,
color:
MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
),
),
],
@@ -366,9 +361,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
noAccessWarning();
}
},
buttonColor: MzansiInnovationHub.of(context)!
.theme
.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Text(
"View Profile",
@@ -402,9 +395,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
context,
);
},
buttonColor: MzansiInnovationHub.of(context)!
.theme
.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Text(
"Request Access",
@@ -436,9 +427,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
context,
);
},
buttonColor: MzansiInnovationHub.of(context)!
.theme
.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Text(
"Re-apply",

View File

@@ -399,8 +399,7 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
lastName = "${widget.patientAccesses[index].lname[0]}********";
accessWithColour = TextSpan(
text: "$access\n",
style: TextStyle(
color: MzansiInnovationHub.of(context)!.theme.errorColor()));
style: TextStyle(color: MihColors.getRedColor(context)));
}
return ListTile(

View File

@@ -1,5 +1,6 @@
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
import 'package:mzansi_innovation_hub/mih_services/mih_service_calls.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_tool_body.dart';
@@ -91,9 +92,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
child: Text(
"Error pulling Patients Data\n$baseUrl/patients/search/$_mihPatientSearchString",
style: TextStyle(
fontSize: 25,
color:
MzansiInnovationHub.of(context)!.theme.errorColor()),
fontSize: 25, color: MihColors.getRedColor(context)),
textAlign: TextAlign.center,
),
);

View File

@@ -1,5 +1,6 @@
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart';
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
import 'package:mzansi_innovation_hub/mih_services/mih_service_calls.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_tool_body.dart';
@@ -93,9 +94,7 @@ class _MyPatientListState extends State<MyPatientList> {
child: Text(
"Error pulling Patient Access Data\n$baseUrl/access-requests/business/patient/${widget.business!.business_id}",
style: TextStyle(
fontSize: 25,
color:
MzansiInnovationHub.of(context)!.theme.errorColor()),
fontSize: 25, color: MihColors.getRedColor(context)),
textAlign: TextAlign.center,
),
);

View File

@@ -419,9 +419,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
MihAlertServices().formNotFilledCompletely(context);
}
},
buttonColor: MzansiInnovationHub.of(context)!
.theme
.successColor(),
buttonColor: MihColors.getGreenColor(context),
width: 300,
child: Text(
"Add",

View File

@@ -280,7 +280,7 @@ class _PatientConsultationState extends State<PatientConsultation> {
if (_counter.value <= 512) {
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} else {
return MzansiInnovationHub.of(context)!.theme.errorColor();
return MihColors.getRedColor(context);
}
}

View File

@@ -281,8 +281,7 @@ class _EditPatientState extends State<EditPatient> {
),
MihButton(
onPressed: deletePatientApiCall,
buttonColor:
MzansiInnovationHub.of(context)!.theme.errorColor(),
buttonColor: MihColors.getRedColor(context),
width: 300,
child: Text(
"Delete",
@@ -310,7 +309,7 @@ class _EditPatientState extends State<EditPatient> {
},
icon: Icon(
Icons.close,
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
color: MihColors.getRedColor(context),
size: 35,
),
),