forked from yaso_meth/mih-project
Use Mih Color Red
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/app_user.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/notification.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import '../../main.dart';
|
||||
import 'package:supertokens_flutter/http.dart' as http;
|
||||
|
||||
@@ -101,7 +102,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
|
||||
children: [
|
||||
Icon(
|
||||
Icons.circle_notifications,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 5,
|
||||
|
||||
@@ -7,6 +7,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/Exam
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/Example/package_tools/package_tool_two.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class PackageTest extends StatefulWidget {
|
||||
// final AppUser user;
|
||||
@@ -66,7 +67,7 @@ class _PackageTestState extends State<PackageTest> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Oops! Looks like some fields are missing.",
|
||||
alertBody: Column(
|
||||
@@ -111,7 +112,7 @@ class _PackageTestState extends State<PackageTest> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@@ -721,8 +721,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
|
||||
onPressed: () {
|
||||
print("Button Pressed");
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Click Me",
|
||||
|
||||
@@ -32,8 +32,7 @@ class _MihFloatingMenuState extends State<MihFloatingMenu> {
|
||||
direction: widget.direction ?? SpeedDialDirection.up,
|
||||
activeIcon: Icons.close,
|
||||
backgroundColor: MihColors.getGreenColor(context),
|
||||
activeBackgroundColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
activeBackgroundColor: MihColors.getRedColor(context),
|
||||
foregroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
overlayColor: Colors.black,
|
||||
overlayOpacity: 0.5,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class MihPackageAlert extends StatefulWidget {
|
||||
final Widget alertIcon;
|
||||
@@ -101,7 +102,7 @@ class _MihPackageAlertState extends State<MihPackageAlert> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:flutter_speed_dial/flutter_speed_dial.dart';
|
||||
import 'package:mzansi_innovation_hub/main.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_floating_menu.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class MihPackageWindow extends StatefulWidget {
|
||||
final String windowTitle;
|
||||
@@ -84,7 +85,7 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
|
||||
child: IconButton.filled(
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all<Color>(
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
MihColors.getRedColor(context)),
|
||||
),
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
iconSize: 20,
|
||||
|
||||
@@ -85,7 +85,7 @@ class _MihToggleState extends State<MihToggle> {
|
||||
widget.readOnly == true ? Colors.grey : widget.secondaryFillColor,
|
||||
inactiveTrackColor: widget.readOnly == true
|
||||
? Colors.grey.shade400
|
||||
: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
: MihColors.getRedColor(context),
|
||||
// activeColor: widget.secondaryFillColor,
|
||||
// activeTrackColor: widget.fillColor,
|
||||
// inactiveThumbColor: widget.fillColor,
|
||||
|
||||
@@ -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 MIHDeleteMessage extends StatefulWidget {
|
||||
@@ -99,8 +100,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
const SizedBox(height: 15),
|
||||
MihButton(
|
||||
onPressed: widget.onTap,
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -127,7 +127,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -184,8 +184,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
const SizedBox(height: 15),
|
||||
MihButton(
|
||||
onPressed: widget.onTap,
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -212,7 +211,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -270,8 +269,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
|
||||
MihButton(
|
||||
onPressed: widget.onTap,
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -298,7 +296,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -355,8 +353,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
const SizedBox(height: 15),
|
||||
MihButton(
|
||||
onPressed: widget.onTap,
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -383,7 +380,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -440,8 +437,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
const SizedBox(height: 15),
|
||||
MihButton(
|
||||
onPressed: widget.onTap,
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -468,7 +464,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import '../../main.dart';
|
||||
|
||||
class MIHErrorMessage extends StatefulWidget {
|
||||
@@ -57,9 +58,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -68,14 +68,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 5),
|
||||
Text(
|
||||
"Oops! Looks like some fields are missing.",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -137,7 +137,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -156,9 +156,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -167,14 +166,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 15),
|
||||
Text(
|
||||
"Password Doesn't Meet Requirements",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -243,7 +242,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -262,9 +261,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -273,14 +271,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 15),
|
||||
Text(
|
||||
"Let's Fix That Username",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -311,7 +309,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -330,9 +328,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -341,14 +338,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 15),
|
||||
Text(
|
||||
"Oops! Invalid Email",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -379,7 +376,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -398,9 +395,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -409,14 +405,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//SizedBox(height: 15),
|
||||
Text(
|
||||
"Email Already Exists",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -435,7 +431,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Text(
|
||||
"Here are some things to keep in mind:",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpSubtitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -466,7 +462,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -485,9 +481,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -496,14 +491,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//SizedBox(height: 15),
|
||||
Text(
|
||||
"Passwords Don't Match",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -522,7 +517,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Text(
|
||||
"Here are some things to keep in mind:",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpSubtitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -554,7 +549,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -573,9 +568,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -584,14 +578,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//SizedBox(height: 15),
|
||||
Text(
|
||||
"Uh oh! Login attempt unsuccessful.",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -610,7 +604,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Text(
|
||||
"Here are some things to keep in mind:",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpSubtitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -642,7 +636,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -661,9 +655,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -672,14 +665,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 15),
|
||||
Text(
|
||||
"Internet Connection Lost!",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -698,7 +691,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Text(
|
||||
"Here are a few things you can try:",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpSubtitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -730,7 +723,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -749,9 +742,8 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
decoration: BoxDecoration(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
borderRadius: BorderRadius.circular(25.0),
|
||||
border: Border.all(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
width: 5.0),
|
||||
border:
|
||||
Border.all(color: MihColors.getRedColor(context), width: 5.0),
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
@@ -760,14 +752,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: popUpIconSize,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
//const SizedBox(height: 15),
|
||||
Text(
|
||||
"Location Services Not Enabled",
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: popUpTitleSize,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
@@ -786,7 +778,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
// Text(
|
||||
// "Here are a few things you can try:",
|
||||
// style: TextStyle(
|
||||
// color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
// color: MihColors.getRedColor(context),
|
||||
// fontSize: popUpSubtitleSize,
|
||||
// fontWeight: FontWeight.bold,
|
||||
// ),
|
||||
@@ -818,7 +810,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import '../../main.dart';
|
||||
import '../../mih_components/mih_objects/arguments.dart';
|
||||
|
||||
@@ -132,7 +133,7 @@ class _MIHNotificationMessageState extends State<MIHNotificationMessage>
|
||||
super.initState();
|
||||
setState(() {
|
||||
primary = MzansiInnovationHub.of(context)!.theme.primaryColor();
|
||||
secondary = MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
secondary = MihColors.getRedColor(context);
|
||||
});
|
||||
_animationController = AnimationController(
|
||||
vsync: this,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import '../../main.dart';
|
||||
|
||||
class MIHWarningMessage extends StatefulWidget {
|
||||
@@ -109,7 +110,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -179,7 +180,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -249,7 +250,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -319,7 +320,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -389,7 +390,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
@@ -459,7 +460,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -142,8 +142,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
|
||||
} else {
|
||||
accessWithColour = TextSpan(
|
||||
text: "$access\n",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()));
|
||||
style: TextStyle(color: MihColors.getRedColor(context)));
|
||||
}
|
||||
|
||||
return ListTile(
|
||||
@@ -248,8 +247,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
|
||||
onPressed: () {
|
||||
updateAccessAPICall(index, "declined");
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Decline",
|
||||
|
||||
@@ -95,8 +95,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
|
||||
} else {
|
||||
accessWithColour = TextSpan(
|
||||
text: "$access\n",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()));
|
||||
style: TextStyle(color: MihColors.getRedColor(context)));
|
||||
}
|
||||
|
||||
return ListTile(
|
||||
@@ -212,16 +211,14 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
|
||||
"Important Notice: Approving Profile Access",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"You are about to accept access to your 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(
|
||||
@@ -264,8 +261,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
|
||||
"By pressing the \"Approve\" button you accept the above terms.",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -281,16 +277,14 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
|
||||
"Important Notice: Approved Profile Access",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
"You have accepted access to your 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(
|
||||
@@ -355,8 +349,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
|
||||
context,
|
||||
);
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Decline",
|
||||
|
||||
@@ -110,7 +110,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
|
||||
Widget alertpopUp = MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.fingerprint,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 100,
|
||||
),
|
||||
alertTitle: "Biometric Authentication Error",
|
||||
@@ -172,7 +172,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
showDialog(
|
||||
context: context,
|
||||
|
||||
@@ -282,7 +282,7 @@ class _SignInState extends State<SignIn> {
|
||||
},
|
||||
icon: Icon(
|
||||
Icons.close,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 35,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -10,6 +10,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
||||
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_text_form_field.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_currency_exchange_rate_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_validation_services.dart';
|
||||
@@ -436,8 +437,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
|
||||
child: Text(
|
||||
"Error pulling Currency Exchange Data.",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_tool_body.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:math_expressions/math_expressions.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class SimpleCalc extends StatefulWidget {
|
||||
const SimpleCalc({super.key});
|
||||
@@ -295,8 +296,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
|
||||
equalPressed();
|
||||
});
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 50,
|
||||
height: 50,
|
||||
borderRadius: 5,
|
||||
@@ -320,9 +320,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
|
||||
userInput = answer;
|
||||
});
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.successColor(),
|
||||
buttonColor: MihColors.getGreenColor(context),
|
||||
width: 50,
|
||||
height: 50,
|
||||
borderRadius: 5,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_banner_ad.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_validation_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
|
||||
@@ -392,9 +393,7 @@ class _TipCalcState extends State<TipCalc> {
|
||||
MihAlertServices().formNotFilledCompletely(context);
|
||||
}
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.successColor(),
|
||||
buttonColor: MihColors.getGreenColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Calculate",
|
||||
@@ -411,8 +410,7 @@ class _TipCalcState extends State<TipCalc> {
|
||||
onPressed: () {
|
||||
clearInput();
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Clear",
|
||||
|
||||
@@ -144,8 +144,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
|
||||
} else {
|
||||
accessWithColour = TextSpan(
|
||||
text: "$access\n",
|
||||
style: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()));
|
||||
style: TextStyle(color: MihColors.getRedColor(context)));
|
||||
}
|
||||
|
||||
return ListTile(
|
||||
@@ -250,8 +249,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
|
||||
onPressed: () {
|
||||
updateAccessAPICall(index, "declined");
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Decline",
|
||||
|
||||
@@ -243,9 +243,7 @@ class _PatientAccessRequestState extends State<Appointments> {
|
||||
MihAlertServices().formNotFilledCompletely(context);
|
||||
}
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.successColor(),
|
||||
buttonColor: MihColors.getGreenColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Add",
|
||||
|
||||
@@ -11,6 +11,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_text_form_field.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_error_message.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_env.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_user_services.dart';
|
||||
@@ -159,7 +160,7 @@ class _MihRegisterState extends State<MihRegister> {
|
||||
return MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 100,
|
||||
),
|
||||
alertTitle: "Error While Signing Up",
|
||||
@@ -170,7 +171,7 @@ class _MihRegisterState extends State<MihRegister> {
|
||||
fontSize: 18,
|
||||
),
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1021,7 +1021,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
|
||||
child: Icon(
|
||||
Icons.circle,
|
||||
size: 10,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
||||
@@ -142,8 +142,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
|
||||
"Error: $error",
|
||||
textAlign: TextAlign.left,
|
||||
style: TextStyle(
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
|
||||
@@ -313,7 +313,7 @@ class _AiChatState extends State<AiChat> {
|
||||
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
|
||||
secondaryColor: MihColors.getGreenColor(context),
|
||||
errorColor: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
errorColor: MihColors.getRedColor(context),
|
||||
sentMessageBodyTextStyle: TextStyle(
|
||||
color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
fontSize: _chatFrontSize,
|
||||
@@ -697,7 +697,7 @@ class _AiChatState extends State<AiChat> {
|
||||
child: IconButton.filled(
|
||||
style: ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all<Color>(
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
MihColors.getRedColor(context)),
|
||||
),
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.primaryColor(),
|
||||
|
||||
@@ -9,6 +9,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_search_bar.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_single_child_scroll.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_packages/mzansi_directory/builders/build_business_search_resultsList.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_packages/mzansi_directory/builders/build_user_search_results_list.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
@@ -397,8 +398,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
|
||||
child: Text(
|
||||
"Error pulling Patients Data\n/users/search/${mzansiSearchController.text}",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
@@ -550,8 +550,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
|
||||
child: Text(
|
||||
"Error pulling Patients Data\n/users/search/${mzansiSearchController.text}",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -88,8 +88,7 @@ class _MihAddBookmarkAlertState extends State<MihAddBookmarkAlert> {
|
||||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: TextStyle(
|
||||
|
||||
@@ -52,7 +52,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Making Call",
|
||||
alertBody: Column(
|
||||
@@ -68,7 +68,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -102,7 +102,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Email",
|
||||
alertBody: Column(
|
||||
@@ -118,7 +118,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -143,7 +143,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Maps",
|
||||
alertBody: Column(
|
||||
@@ -159,8 +159,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -172,7 +171,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Creating Maps",
|
||||
alertBody: Column(
|
||||
@@ -188,7 +187,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -212,7 +211,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Opening Website",
|
||||
alertBody: Column(
|
||||
@@ -228,8 +227,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -241,7 +239,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Opening Website",
|
||||
alertBody: Column(
|
||||
@@ -257,7 +255,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -121,8 +121,7 @@ class _MihDeleteBookmarkAlertState extends State<MihDeleteBookmarkAlert> {
|
||||
deleteBookmark(
|
||||
widget.bookmarkBusiness!.idbookmarked_businesses);
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Remove Business",
|
||||
style: TextStyle(
|
||||
|
||||
@@ -52,11 +52,11 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => MihPackageAlert(
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Delete Review",
|
||||
alertBody: Column(
|
||||
@@ -117,8 +117,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
}
|
||||
});
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
child: Text(
|
||||
"Delete",
|
||||
style: TextStyle(
|
||||
@@ -157,7 +156,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -501,9 +500,7 @@ class _MihReviewBusinessWindowState extends State<MihReviewBusinessWindow> {
|
||||
MihAlertServices().formNotFilledCompletely(context);
|
||||
}
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!
|
||||
.theme
|
||||
.successColor(),
|
||||
buttonColor: MihColors.getGreenColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
widget.businessReview != null
|
||||
|
||||
@@ -105,7 +105,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
||||
return MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Updating Business Details",
|
||||
alertBody: Column(
|
||||
@@ -120,8 +120,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -605,7 +604,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
|
||||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/app_user.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_packages/mzansi_profile/business_profile/builders/build_user_list.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_user_services.dart';
|
||||
@@ -223,9 +224,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
|
||||
child: Text(
|
||||
"$errorCode: Error pulling Patients Data\n/users/search/$userSearch\n$errorBody",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:mzansi_innovation_hub/main.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';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_env.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/arguments.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_objects/business_employee.dart';
|
||||
@@ -104,9 +105,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
|
||||
child: Text(
|
||||
"$errorCode: Error pulling Patients Data\n${AppEnviroment.baseApiUrl}/business-user/users/${widget.arguments.businessUser!.business_id}\n$errorBody",
|
||||
style: TextStyle(
|
||||
fontSize: 25,
|
||||
color:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor()),
|
||||
fontSize: 25, color: MihColors.getRedColor(context)),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -127,7 +127,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
|
||||
return MihPackageAlert(
|
||||
alertIcon: Icon(
|
||||
Icons.warning_rounded,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Error Updating Business User Details",
|
||||
alertBody: Column(
|
||||
@@ -142,8 +142,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:country_code_picker/country_code_picker.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_pop_up_messages/mih_loading_circle.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_alert_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_business_details_services.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_services/mih_file_services.dart';
|
||||
@@ -259,7 +260,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
||||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Too Slow, That Username is Taken",
|
||||
alertBody: const Text(
|
||||
@@ -63,7 +63,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
|
||||
fontSize: 15,
|
||||
),
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -196,7 +196,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
|
||||
if (_counter.value <= limit) {
|
||||
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
|
||||
} else {
|
||||
return MzansiInnovationHub.of(context)!.theme.errorColor();
|
||||
return MihColors.getRedColor(context);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: 100,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle:
|
||||
"Are you sure you want to permanently delete your MIH account?",
|
||||
@@ -65,8 +65,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
|
||||
MihUserServices.deleteAccount(
|
||||
widget.signedInUser.app_id, context);
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete",
|
||||
@@ -100,7 +99,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
|
||||
)
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -132,7 +131,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
|
||||
onPressed: () {
|
||||
deleteAccountPopUp(context);
|
||||
},
|
||||
buttonColor: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Delete Account",
|
||||
|
||||
@@ -258,10 +258,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
||||
barrierDismissible: false,
|
||||
builder: (context) {
|
||||
return MihPackageAlert(
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
alertIcon: Icon(
|
||||
Icons.favorite_border,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
size: 100,
|
||||
),
|
||||
alertTitle: "Remove From Favourites",
|
||||
@@ -291,8 +291,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
|
||||
ctxt,
|
||||
);
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 300,
|
||||
child: Text(
|
||||
"Remove",
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:mzansi_innovation_hub/main.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:mobile_scanner/mobile_scanner.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_button.dart';
|
||||
import 'package:mzansi_innovation_hub/mih_config/mih_colors.dart';
|
||||
|
||||
class MihBarcodeScanner extends StatefulWidget {
|
||||
final TextEditingController cardNumberController;
|
||||
@@ -125,8 +126,7 @@ class _MihBarcodeScannerState extends State<MihBarcodeScanner>
|
||||
_scannerController.stop();
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
buttonColor:
|
||||
MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
buttonColor: MihColors.getRedColor(context),
|
||||
width: 100,
|
||||
height: 50,
|
||||
child: Text(
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -12,7 +12,7 @@ class MihAlertServices {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: 150,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: "Oops! Looks like some fields are missing.",
|
||||
alertBody: Column(
|
||||
@@ -51,7 +51,7 @@ class MihAlertServices {
|
||||
),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
@@ -96,7 +96,7 @@ class MihAlertServices {
|
||||
alertIcon: Icon(
|
||||
Icons.warning_amber_rounded,
|
||||
size: 150,
|
||||
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
color: MihColors.getRedColor(context),
|
||||
),
|
||||
alertTitle: title,
|
||||
alertBody: Column(
|
||||
@@ -113,7 +113,7 @@ class MihAlertServices {
|
||||
const SizedBox(height: 25),
|
||||
],
|
||||
),
|
||||
alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
|
||||
alertColour: MihColors.getRedColor(context),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user