Change MzanziInnovationHub to MzansiInnovationHub

This commit is contained in:
2025-07-15 13:11:13 +02:00
parent 83cb187868
commit 3535de560d
118 changed files with 1488 additions and 1486 deletions

View File

@@ -3,20 +3,20 @@ import 'mih_config/mih_env.dart';
import 'mih_config/mih_routeGenerator.dart'; import 'mih_config/mih_routeGenerator.dart';
import 'mih_config/mih_theme.dart'; import 'mih_config/mih_theme.dart';
class MzanziInnovationHub extends StatefulWidget { class MzansiInnovationHub extends StatefulWidget {
const MzanziInnovationHub({ const MzansiInnovationHub({
super.key, super.key,
}); });
@override @override
State<MzanziInnovationHub> createState() => _MzanziInnovationHubState(); State<MzansiInnovationHub> createState() => _MzansiInnovationHubState();
// ignore: library_private_types_in_public_api // ignore: library_private_types_in_public_api
static _MzanziInnovationHubState? of(BuildContext context) => static _MzansiInnovationHubState? of(BuildContext context) =>
context.findAncestorStateOfType<_MzanziInnovationHubState>(); context.findAncestorStateOfType<_MzansiInnovationHubState>();
} }
class _MzanziInnovationHubState extends State<MzanziInnovationHub> { class _MzansiInnovationHubState extends State<MzansiInnovationHub> {
late MihTheme theme; late MihTheme theme;
Color getPrimany() { Color getPrimany() {

View File

@@ -26,5 +26,5 @@ void main() async {
debugPrint('APP INSTALLED!'); debugPrint('APP INSTALLED!');
}); });
FlutterNativeSplash.remove(); FlutterNativeSplash.remove();
runApp(const MzanziInnovationHub()); runApp(const MzansiInnovationHub());
} }

View File

@@ -26,5 +26,5 @@ void main() async {
debugPrint('APP INSTALLED!'); debugPrint('APP INSTALLED!');
}); });
FlutterNativeSplash.remove(); FlutterNativeSplash.remove();
runApp(const MzanziInnovationHub()); runApp(const MzansiInnovationHub());
} }

View File

@@ -18,7 +18,7 @@ class _MIHBodyState extends State<MIHBody> {
//double paddingSize = 10; //double paddingSize = 10;
double getHorizontalPaddingSize(Size screenSize) { double getHorizontalPaddingSize(Size screenSize) {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
if (widget.borderOn) { if (widget.borderOn) {
return 10; return 10;
} else { } else {
@@ -46,10 +46,10 @@ class _MIHBodyState extends State<MIHBody> {
Decoration? getBoader() { Decoration? getBoader() {
if (widget.borderOn) { if (widget.borderOn) {
return BoxDecoration( return BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 3.0), width: 3.0),
); );
} else { } else {

View File

@@ -78,13 +78,13 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
title: Text( title: Text(
title, title,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: Text( subtitle: Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () {}, onTap: () {},
@@ -101,7 +101,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
children: [ children: [
Icon( Icon(
Icons.circle_notifications, Icons.circle_notifications,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
const SizedBox( const SizedBox(
width: 5, width: 5,
@@ -110,7 +110,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -124,7 +124,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -136,7 +136,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
subtitle: Text( subtitle: Text(
subtitle, subtitle,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () { onTap: () {
@@ -159,7 +159,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.notifications.length, itemCount: widget.notifications.length,
@@ -198,14 +198,14 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SafeArea( return SafeArea(
child: Drawer( child: Drawer(
//backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), //backgroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Container( Container(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@@ -215,7 +215,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
child: Text( child: Text(
"Notifications", "Notifications",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@@ -232,7 +232,7 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
// physics: const NeverScrollableScrollPhysics(), // physics: const NeverScrollableScrollPhysics(),
// separatorBuilder: (BuildContext context, index) { // separatorBuilder: (BuildContext context, index) {
// return Divider( // return Divider(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ); // );
// }, // },
// itemCount: widget.notifications.length, // itemCount: widget.notifications.length,

View File

@@ -83,7 +83,7 @@ class _MIHTileState extends State<MIHTile> {
child: Material( child: Material(
color: mainC, color: mainC,
// shadowColor: // shadowColor:
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), // MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// elevation: 5, // elevation: 5,
borderRadius: BorderRadius.circular(80), borderRadius: BorderRadius.circular(80),
child: InkWell( child: InkWell(
@@ -95,9 +95,9 @@ class _MIHTileState extends State<MIHTile> {
}, },
// hoverDuration: , // hoverDuration: ,
splashColor: splashColor:
MzanziInnovationHub.of(context)!.theme.highlightColor(), MzansiInnovationHub.of(context)!.theme.highlightColor(),
highlightColor: highlightColor:
MzanziInnovationHub.of(context)!.theme.highlightColor(), MzansiInnovationHub.of(context)!.theme.highlightColor(),
child: widget.tileIcon, child: widget.tileIcon,
), ),
), ),
@@ -111,7 +111,7 @@ class _MIHTileState extends State<MIHTile> {
softWrap: true, softWrap: true,
overflow: TextOverflow.visible, overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 40.0, fontSize: 40.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

View File

@@ -66,7 +66,7 @@ class _PackageTestState extends State<PackageTest> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Oops! Looks like some fields are missing.", alertTitle: "Oops! Looks like some fields are missing.",
alertBody: Column( alertBody: Column(
@@ -75,7 +75,7 @@ class _PackageTestState extends State<PackageTest> {
"We noticed that some required fields are still empty. To ensure your request is processed smoothly, please fill out all the highlighted fields before submitting the form again.", "We noticed that some required fields are still empty. To ensure your request is processed smoothly, please fill out all the highlighted fields before submitting the form again.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -85,7 +85,7 @@ class _PackageTestState extends State<PackageTest> {
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -94,14 +94,14 @@ class _PackageTestState extends State<PackageTest> {
text: "Here's a quick tip: ", text: "Here's a quick tip: ",
style: TextStyle( style: TextStyle(
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor())), .errorColor())),
const TextSpan(text: "Look for fields with an asterisk ("), const TextSpan(text: "Look for fields with an asterisk ("),
TextSpan( TextSpan(
text: "*", text: "*",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor())), .errorColor())),
const TextSpan( const TextSpan(
@@ -111,7 +111,7 @@ class _PackageTestState extends State<PackageTest> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}, },
); );

View File

@@ -96,17 +96,17 @@ class _PackageToolOneState extends State<PackageToolOne> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.add, Icons.add,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Show New Window", label: "Show New Window",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
// showTestWindow(); // showTestWindow();
}, },
@@ -158,7 +158,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
MihSingleChildScroll( MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -175,7 +175,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -196,13 +196,13 @@ class _PackageToolOneState extends State<PackageToolOne> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
elevation: 10, elevation: 10,
width: 300, width: 300,
child: Text( child: Text(
"Show Loading", "Show Loading",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -221,7 +221,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -242,7 +242,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -302,7 +302,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
Divider( Divider(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
thickness: 2, thickness: 2,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -315,7 +315,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -326,7 +326,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
Divider( Divider(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
thickness: 2, thickness: 2,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -335,11 +335,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
width: 200, width: 200,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _textFieldZeroController, controller: _textFieldZeroController,
multiLineInput: false, multiLineInput: false,
requiredText: false, requiredText: false,
@@ -350,11 +350,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _textFieldOneController, controller: _textFieldOneController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -366,11 +366,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _textFieldTwoController, controller: _textFieldTwoController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -383,11 +383,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _textFieldThreeController, controller: _textFieldThreeController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -400,11 +400,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihNumericStepper( MihNumericStepper(
controller: _textFieldFiveController, controller: _textFieldFiveController,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
hintText: "Number Stepper", hintText: "Number Stepper",
requiredText: true, requiredText: true,
minValue: 1, minValue: 1,
@@ -415,11 +415,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
MihToggle( MihToggle(
hintText: "Toggle", hintText: "Toggle",
initialPostion: switchpositioin, initialPostion: switchpositioin,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
readOnly: false, readOnly: false,
onChange: (value) { onChange: (value) {
setState(() { setState(() {
@@ -432,11 +432,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
MihRadioOptions( MihRadioOptions(
controller: _textFieldSixController, controller: _textFieldSixController,
hintText: "Radio Options", hintText: "Radio Options",
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
requiredText: true, requiredText: true,
radioOptions: const ["Option 1", "Option 2"], radioOptions: const ["Option 1", "Option 2"],
), ),
@@ -477,11 +477,11 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
height: 250, height: 250,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _textFieldFourController, controller: _textFieldFourController,
multiLineInput: true, multiLineInput: true,
requiredText: false, requiredText: false,
@@ -505,7 +505,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
MihAlertServices().formNotFilledCompletely(context); MihAlertServices().formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
elevation: 10, elevation: 10,
@@ -513,7 +513,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
child: Text( child: Text(
"Submit Form", "Submit Form",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -527,7 +527,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
Divider( Divider(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
thickness: 2, thickness: 2,
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -539,9 +539,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
prefixAltIcon: MihIcons.mzansiAi, prefixAltIcon: MihIcons.mzansiAi,
width: 300, width: 300,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
print("Search Icon Pressed: ${_searchController.text}"); print("Search Icon Pressed: ${_searchController.text}");
}, },
@@ -553,14 +553,14 @@ class _PackageToolOneState extends State<PackageToolOne> {
print("Button Pressed"); print("Button Pressed");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
elevation: 10, elevation: 10,
width: 300, width: 300,
child: Text( child: Text(
"Click Me", "Click Me",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -572,21 +572,21 @@ class _PackageToolOneState extends State<PackageToolOne> {
print("Button Pressed"); print("Button Pressed");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Icon( Icon(
Icons.delete, Icons.delete,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
Text( Text(
"Click Me", "Click Me",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -602,13 +602,13 @@ class _PackageToolOneState extends State<PackageToolOne> {
print("Button Pressed"); print("Button Pressed");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Click Me", "Click Me",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -626,7 +626,7 @@ class _PackageToolOneState extends State<PackageToolOne> {
icon: Icon( icon: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
), ),
@@ -638,9 +638,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
fileNameController: _fileNameController, fileNameController: _fileNameController,
userSelectedfile: file, userSelectedfile: file,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (selectedImage) { onChange: (selectedImage) {
setState(() { setState(() {
file = selectedImage; file = selectedImage;
@@ -650,9 +650,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _fileNameController, controller: _fileNameController,
hintText: "Selected Avatar File", hintText: "Selected Avatar File",
requiredText: false, requiredText: false,
@@ -675,9 +675,9 @@ class _PackageToolOneState extends State<PackageToolOne> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _imagefileController, controller: _imagefileController,
hintText: "Selected Image File", hintText: "Selected Image File",
requiredText: false, requiredText: false,
@@ -698,18 +698,18 @@ class _PackageToolOneState extends State<PackageToolOne> {
child: Icon( child: Icon(
Icons.add, Icons.add,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Show New Window", label: "Show New Window",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
showTestWindow(); showTestWindow();
}, },
@@ -718,18 +718,18 @@ class _PackageToolOneState extends State<PackageToolOne> {
child: Icon( child: Icon(
Icons.add, Icons.add,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Show New Full Window", label: "Show New Full Window",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
showTestFullWindow(); showTestFullWindow();
}, },

View File

@@ -32,7 +32,7 @@ class _PackageToolTwoState extends State<PackageToolTwo> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -46,7 +46,7 @@ class _PackageToolTwoState extends State<PackageToolTwo> {
onPressed: () {}, onPressed: () {},
icon: Icon( icon: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
) )

View File

@@ -62,9 +62,9 @@ class _MihBusinessProfilePreviewState extends State<MihBusinessProfilePreview> {
fileNameController: TextEditingController(), fileNameController: TextEditingController(),
userSelectedfile: file, userSelectedfile: file,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: () {}, onChange: () {},
); );
} else { } else {
@@ -72,7 +72,7 @@ class _MihBusinessProfilePreviewState extends State<MihBusinessProfilePreview> {
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: profilePictureWidth, size: profilePictureWidth,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
} }
} else { } else {

View File

@@ -37,7 +37,7 @@ class _MIHCalendarState extends State<MIHCalendar> {
formatButtonDecoration: BoxDecoration( formatButtonDecoration: BoxDecoration(
border: Border.fromBorderSide( border: Border.fromBorderSide(
BorderSide( BorderSide(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
borderRadius: const BorderRadius.all( borderRadius: const BorderRadius.all(
@@ -61,29 +61,29 @@ class _MIHCalendarState extends State<MIHCalendar> {
calendarStyle: CalendarStyle( calendarStyle: CalendarStyle(
outsideDaysVisible: false, outsideDaysVisible: false,
todayTextStyle: TextStyle( todayTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
todayDecoration: BoxDecoration( todayDecoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.successColor(), color: MzansiInnovationHub.of(context)!.theme.successColor(),
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
selectedTextStyle: TextStyle( selectedTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
selectedDecoration: BoxDecoration( selectedDecoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
weekendTextStyle: TextStyle( weekendTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.messageTextColor(), color: MzansiInnovationHub.of(context)!.theme.messageTextColor(),
), ),
), ),
daysOfWeekStyle: DaysOfWeekStyle( daysOfWeekStyle: DaysOfWeekStyle(
weekdayStyle: TextStyle( weekdayStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
weekendStyle: TextStyle( weekendStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.messageTextColor(), color: MzansiInnovationHub.of(context)!.theme.messageTextColor(),
), ),
), ),
), ),

View File

@@ -110,7 +110,7 @@ class _MihCircleAvatarState extends State<MihCircleAvatar> {
type: FileType.image, type: FileType.image,
); );
// print("Here 1"); // print("Here 1");
if (MzanziInnovationHub.of(context)!.theme.getPlatform() == if (MzansiInnovationHub.of(context)!.theme.getPlatform() ==
"Web") { "Web") {
// print("Here 2"); // print("Here 2");
if (result == null) return; if (result == null) return;

View File

@@ -47,7 +47,7 @@ class _MihDateFieldState extends State<MihDateField> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = MzanziInnovationHub.of(context)!.theme; final theme = MzansiInnovationHub.of(context)!.theme;
return Center( return Center(
child: SizedBox( child: SizedBox(
width: widget.width, width: widget.width,

View File

@@ -30,7 +30,7 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
List<DropdownMenuEntry<String>> buildMenuOptions(List<String> options) { List<DropdownMenuEntry<String>> buildMenuOptions(List<String> options) {
List<DropdownMenuEntry<String>> menuList = []; List<DropdownMenuEntry<String>> menuList = [];
final theme = MzanziInnovationHub.of(context)!.theme; final theme = MzansiInnovationHub.of(context)!.theme;
for (final i in options) { for (final i in options) {
menuList.add(DropdownMenuEntry( menuList.add(DropdownMenuEntry(
value: i, value: i,
@@ -59,7 +59,7 @@ class _MihDropdownFieldState extends State<MihDropdownField> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = MzanziInnovationHub.of(context)!.theme; final theme = MzansiInnovationHub.of(context)!.theme;
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

View File

@@ -30,10 +30,10 @@ class _MihFloatingMenuState extends State<MihFloatingMenu> {
animatedIcon: widget.animatedIcon, animatedIcon: widget.animatedIcon,
direction: widget.direction ?? SpeedDialDirection.up, direction: widget.direction ?? SpeedDialDirection.up,
activeIcon: Icons.close, activeIcon: Icons.close,
backgroundColor: MzanziInnovationHub.of(context)!.theme.successColor(), backgroundColor: MzansiInnovationHub.of(context)!.theme.successColor(),
activeBackgroundColor: activeBackgroundColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
foregroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), foregroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
overlayColor: Colors.black, overlayColor: Colors.black,
overlayOpacity: 0.5, overlayOpacity: 0.5,
children: widget.children, children: widget.children,

View File

@@ -33,7 +33,7 @@ class _MihImageDisplayState extends State<MihImageDisplay> {
ImageProvider<Object>? getImage() { ImageProvider<Object>? getImage() {
Color dark = const Color(0XFF3A4454); Color dark = const Color(0XFF3A4454);
if (widget.imageFile == null) { if (widget.imageFile == null) {
if (MzanziInnovationHub.of(context)!.theme.secondaryColor() == dark) { if (MzansiInnovationHub.of(context)!.theme.secondaryColor() == dark) {
print("here in light icon"); print("here in light icon");
return const AssetImage( return const AssetImage(
'lib/mih_components/mih_package_components/assets/images/i-dont-know-dark.png'); 'lib/mih_components/mih_package_components/assets/images/i-dont-know-dark.png');
@@ -78,9 +78,9 @@ class _MihImageDisplayState extends State<MihImageDisplay> {
child: IconButton.filled( child: IconButton.filled(
style: IconButton.styleFrom( style: IconButton.styleFrom(
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPressed: () async { onPressed: () async {
try { try {
FilePickerResult? result = FilePickerResult? result =
@@ -88,7 +88,7 @@ class _MihImageDisplayState extends State<MihImageDisplay> {
type: FileType.image, type: FileType.image,
); );
// print("Here 1"); // print("Here 1");
if (MzanziInnovationHub.of(context)!.theme.getPlatform() == if (MzansiInnovationHub.of(context)!.theme.getPlatform() ==
"Web") { "Web") {
// print("Here 2"); // print("Here 2");
if (result == null) return; if (result == null) return;

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:mzansi_innovation_hub/main.dart';
import 'package:mzansi_innovation_hub/mih_services/mih_validation_services.dart'; import 'package:mzansi_innovation_hub/mih_services/mih_validation_services.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_text_form_field.dart'; import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_text_form_field.dart';
@@ -107,8 +108,10 @@ class _MihNumericStepperState extends State<MihNumericStepper> {
width: 40, width: 40,
child: IconButton.filled( child: IconButton.filled(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: backgroundColor: WidgetStateProperty.all<Color>(
WidgetStateProperty.all<Color>(widget.fillColor), MzansiInnovationHub.of(context)!
.theme
.successColor()),
), ),
color: widget.inputColor, color: widget.inputColor,
iconSize: 20, iconSize: 20,
@@ -189,8 +192,7 @@ class _MihNumericStepperState extends State<MihNumericStepper> {
width: 40, width: 40,
child: IconButton.filled( child: IconButton.filled(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: backgroundColor: WidgetStateProperty.all<Color>(),
WidgetStateProperty.all<Color>(widget.fillColor),
), ),
color: widget.inputColor, color: widget.inputColor,
iconSize: 20, iconSize: 20,

View File

@@ -86,7 +86,7 @@ class _MihPackageState extends State<MihPackage>
vsync: this, vsync: this,
duration: const Duration(milliseconds: 400), duration: const Duration(milliseconds: 400),
); );
if (!MzanziInnovationHub.of(context)!.theme.kIsWeb) { if (!MzansiInnovationHub.of(context)!.theme.kIsWeb) {
// Trigger the peak animation on start (or call this elsewhere) // Trigger the peak animation on start (or call this elsewhere)
WidgetsBinding.instance.addPostFrameCallback((_) { WidgetsBinding.instance.addPostFrameCallback((_) {
_peakAnimation(); _peakAnimation();

View File

@@ -29,7 +29,7 @@ class _MihPackageAlertState extends State<MihPackageAlert> {
Size? size; Size? size;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (size!.width / 4) * 2; popUpWidth = (size!.width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -64,7 +64,7 @@ class _MihPackageAlertState extends State<MihPackageAlert> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all(color: widget.alertColour, width: 5.0), border: Border.all(color: widget.alertColour, width: 5.0),
), ),
@@ -101,7 +101,7 @@ class _MihPackageAlertState extends State<MihPackageAlert> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),

View File

@@ -85,7 +85,7 @@ class _MihPackageTileState extends State<MihPackageTile> {
// overflow: TextOverflow.visible, // overflow: TextOverflow.visible,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 20.0, fontSize: 20.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

View File

@@ -19,7 +19,7 @@ class MihPackageToolBody extends StatefulWidget {
class _MihPackageToolBodyState extends State<MihPackageToolBody> { class _MihPackageToolBodyState extends State<MihPackageToolBody> {
late double _innerBodyPadding; late double _innerBodyPadding;
double getHorizontalPaddingSize(Size screenSize) { double getHorizontalPaddingSize(Size screenSize) {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
if (widget.borderOn) { if (widget.borderOn) {
return widget.innerHorizontalPadding ?? 10; return widget.innerHorizontalPadding ?? 10;
} else { } else {
@@ -48,19 +48,19 @@ class _MihPackageToolBodyState extends State<MihPackageToolBody> {
if (widget.borderOn) { if (widget.borderOn) {
_innerBodyPadding = 10.0; _innerBodyPadding = 10.0;
return BoxDecoration( return BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 3.0), width: 3.0),
); );
} else { } else {
_innerBodyPadding = 0.0; _innerBodyPadding = 0.0;
return BoxDecoration( return BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
width: 3.0), width: 3.0),
); );
} }

View File

@@ -35,7 +35,7 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
void checkScreenSize() { void checkScreenSize() {
// print("screen width: $width"); // print("screen width: $width");
// print("screen height: $height"); // print("screen height: $height");
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
windowTitleSize = 25; windowTitleSize = 25;
horizontralWindowPadding = width / 7; horizontralWindowPadding = width / 7;
@@ -84,9 +84,9 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
child: IconButton.filled( child: IconButton.filled(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: WidgetStateProperty.all<Color>( backgroundColor: WidgetStateProperty.all<Color>(
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
), ),
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
iconSize: 20, iconSize: 20,
onPressed: () { onPressed: () {
widget.onWindowTapClose(); widget.onWindowTapClose();
@@ -108,7 +108,7 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
style: TextStyle( style: TextStyle(
fontSize: windowTitleSize, fontSize: windowTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -165,10 +165,10 @@ class _MihPackageWindowState extends State<MihPackageWindow> {
insetAnimationDuration: Durations.short1, insetAnimationDuration: Durations.short1,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: widget.fullscreen child: widget.fullscreen

View File

@@ -48,9 +48,9 @@ class _MihPersonalProfilePreviewState extends State<MihPersonalProfilePreview> {
fileNameController: TextEditingController(), fileNameController: TextEditingController(),
userSelectedfile: file, userSelectedfile: file,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: () {}, onChange: () {},
); );
} else { } else {
@@ -58,14 +58,14 @@ class _MihPersonalProfilePreviewState extends State<MihPersonalProfilePreview> {
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: profilePictureWidth, size: profilePictureWidth,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
} }
} else { } else {
return Icon( return Icon(
MihIcons.mihRing, MihIcons.mihRing,
size: profilePictureWidth, size: profilePictureWidth,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
} }
}, },

View File

@@ -215,7 +215,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
widget.borderRadius ?? 8.0), widget.borderRadius ?? 8.0),
borderSide: field.hasError borderSide: field.hasError
? BorderSide( ? BorderSide(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
width: 2.0, width: 2.0,
@@ -232,7 +232,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
widget.borderRadius ?? 8.0), widget.borderRadius ?? 8.0),
borderSide: BorderSide( borderSide: BorderSide(
color: field.hasError color: field.hasError
? MzanziInnovationHub.of(context)! ? MzansiInnovationHub.of(context)!
.theme .theme
.errorColor() .errorColor()
: widget.inputColor, : widget.inputColor,
@@ -243,7 +243,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
widget.borderRadius ?? 8.0), widget.borderRadius ?? 8.0),
borderSide: BorderSide( borderSide: BorderSide(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
width: 3.0, width: 3.0,
@@ -253,7 +253,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
widget.borderRadius ?? 8.0), widget.borderRadius ?? 8.0),
borderSide: BorderSide( borderSide: BorderSide(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
width: 3.0, width: 3.0,
@@ -276,7 +276,7 @@ class _MihTextFormFieldState extends State<MihTextFormField> {
field.errorText ?? '', field.errorText ?? '',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,

View File

@@ -57,7 +57,7 @@ class _MihTimeFieldState extends State<MihTimeField> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = MzanziInnovationHub.of(context)!.theme; final theme = MzansiInnovationHub.of(context)!.theme;
return Center( return Center(
child: SizedBox( child: SizedBox(
width: widget.width, width: widget.width,

View File

@@ -66,11 +66,11 @@ class _MihToggleState extends State<MihToggle> {
return Colors.grey; return Colors.grey;
} }
if (states.contains(WidgetState.selected)) { if (states.contains(WidgetState.selected)) {
return MzanziInnovationHub.of(context)! return MzansiInnovationHub.of(context)!
.theme .theme
.successColor(); // Outline color when active .successColor(); // Outline color when active
} }
return MzanziInnovationHub.of(context)! return MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(); // Outline color when active .errorColor(); // Outline color when active
}, },
@@ -79,12 +79,12 @@ class _MihToggleState extends State<MihToggle> {
widget.readOnly == true ? Colors.grey : widget.secondaryFillColor, widget.readOnly == true ? Colors.grey : widget.secondaryFillColor,
activeTrackColor: widget.readOnly == true activeTrackColor: widget.readOnly == true
? Colors.grey.shade400 ? Colors.grey.shade400
: MzanziInnovationHub.of(context)!.theme.successColor(), : MzansiInnovationHub.of(context)!.theme.successColor(),
inactiveThumbColor: inactiveThumbColor:
widget.readOnly == true ? Colors.grey : widget.secondaryFillColor, widget.readOnly == true ? Colors.grey : widget.secondaryFillColor,
inactiveTrackColor: widget.readOnly == true inactiveTrackColor: widget.readOnly == true
? Colors.grey.shade400 ? Colors.grey.shade400
: MzanziInnovationHub.of(context)!.theme.errorColor(), : MzansiInnovationHub.of(context)!.theme.errorColor(),
// activeColor: widget.secondaryFillColor, // activeColor: widget.secondaryFillColor,
// activeTrackColor: widget.fillColor, // activeTrackColor: widget.fillColor,
// inactiveThumbColor: widget.fillColor, // inactiveThumbColor: widget.fillColor,

View File

@@ -28,7 +28,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
late double height; late double height;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (width / 4) * 2; popUpWidth = (width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -59,10 +59,10 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -73,7 +73,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -81,7 +81,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -91,7 +91,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
"This note will be deleted permanently. Are you certain you want to delete it?", "This note will be deleted permanently. Are you certain you want to delete it?",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -100,13 +100,13 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -127,7 +127,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -144,10 +144,10 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -158,7 +158,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -166,7 +166,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -176,7 +176,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
"This file will be deleted permanently. Are you certain you want to delete it?", "This file will be deleted permanently. Are you certain you want to delete it?",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -185,13 +185,13 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -212,7 +212,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -229,10 +229,10 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -243,7 +243,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -251,7 +251,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -261,7 +261,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
"This team member will be deleted permanently from the business profile. Are you certain you want to delete it?", "This team member will be deleted permanently from the business profile. Are you certain you want to delete it?",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -271,13 +271,13 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -298,7 +298,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -315,10 +315,10 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -329,7 +329,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -337,7 +337,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -347,7 +347,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
"This appointment will be deleted permanently from your calendar. Are you certain you want to delete it?", "This appointment will be deleted permanently from your calendar. Are you certain you want to delete it?",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -356,13 +356,13 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -383,7 +383,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -400,10 +400,10 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -414,7 +414,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -422,7 +422,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -432,7 +432,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
"This Card will be deleted permanently from your Mzansi Wallet. Are you certain you want to delete it?", "This Card will be deleted permanently from your Mzansi Wallet. Are you certain you want to delete it?",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -441,13 +441,13 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -468,7 +468,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),

View File

@@ -24,7 +24,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Size? size; Size? size;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (size!.width / 4) * 2; popUpWidth = (size!.width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -55,10 +55,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -68,14 +68,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 5), //const SizedBox(height: 5),
Text( Text(
"Oops! Looks like some fields are missing.", "Oops! Looks like some fields are missing.",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -85,7 +85,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"We noticed that some required fields are still empty. To ensure your request is processed smoothly, please fill out all the highlighted fields before submitting the form again.", "We noticed that some required fields are still empty. To ensure your request is processed smoothly, please fill out all the highlighted fields before submitting the form again.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -94,7 +94,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
RichText( RichText(
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
@@ -105,7 +105,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
text: "Here's a quick tip: ", text: "Here's a quick tip: ",
style: TextStyle( style: TextStyle(
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor())), .errorColor())),
const TextSpan( const TextSpan(
@@ -113,7 +113,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
TextSpan( TextSpan(
text: "*", text: "*",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor())), .errorColor())),
const TextSpan( const TextSpan(
@@ -137,7 +137,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -154,10 +154,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -167,14 +167,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Password Doesn't Meet Requirements", "Password Doesn't Meet Requirements",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -184,7 +184,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"Oops! Your password doesn't quite meet our standards. To keep your account secure, please make sure your password meets the following requirements", "Oops! Your password doesn't quite meet our standards. To keep your account secure, please make sure your password meets the following requirements",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -193,7 +193,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
RichText( RichText(
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15.0, fontSize: 15.0,
@@ -205,7 +205,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
style: TextStyle( style: TextStyle(
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
fontSize: popUpBodySize, fontSize: popUpBodySize,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor())), .errorColor())),
const TextSpan( const TextSpan(
@@ -243,7 +243,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -260,10 +260,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -273,14 +273,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Let's Fix That Username", "Let's Fix That Username",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -290,7 +290,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"Let's create a great username for you! Just a few quick tips:\n• Your username should start with a letter.\n• You can use letters, numbers, and/ or underscores.\n• Keep it between 6 and 20 characters.\n• Avoid special characters like @, #, or \$.\"", "Let's create a great username for you! Just a few quick tips:\n• Your username should start with a letter.\n• You can use letters, numbers, and/ or underscores.\n• Keep it between 6 and 20 characters.\n• Avoid special characters like @, #, or \$.\"",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -311,7 +311,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -328,10 +328,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -341,14 +341,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Oops! Invalid Email", "Oops! Invalid Email",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -358,7 +358,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"Looks like there's a little hiccup with that email address. Please double-check that you've entered it correctly, including the \"@\" symbol and a domain (like example@email.com).", "Looks like there's a little hiccup with that email address. Please double-check that you've entered it correctly, including the \"@\" symbol and a domain (like example@email.com).",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -379,7 +379,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -396,10 +396,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -409,14 +409,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//SizedBox(height: 15), //SizedBox(height: 15),
Text( Text(
"Email Already Exists", "Email Already Exists",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -426,7 +426,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"An account is already registered with this email address. Please try logging in or use a different email.", "An account is already registered with this email address. Please try logging in or use a different email.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -435,7 +435,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Text( Text(
"Here are some things to keep in mind:", "Here are some things to keep in mind:",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpSubtitleSize, fontSize: popUpSubtitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -446,7 +446,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15.0, fontSize: 15.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -466,7 +466,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -483,10 +483,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -496,14 +496,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//SizedBox(height: 15), //SizedBox(height: 15),
Text( Text(
"Passwords Don't Match", "Passwords Don't Match",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -513,7 +513,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"The password and confirm password fields do not match. Please make sure they are identical.", "The password and confirm password fields do not match. Please make sure they are identical.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -522,7 +522,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Text( Text(
"Here are some things to keep in mind:", "Here are some things to keep in mind:",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpSubtitleSize, fontSize: popUpSubtitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -533,7 +533,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -554,7 +554,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -571,10 +571,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -584,14 +584,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//SizedBox(height: 15), //SizedBox(height: 15),
Text( Text(
"Uh oh! Login attempt unsuccessful.", "Uh oh! Login attempt unsuccessful.",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -601,7 +601,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"The email address or password you entered doesn't seem to match our records. Please double-check your information and try again.", "The email address or password you entered doesn't seem to match our records. Please double-check your information and try again.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -610,7 +610,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Text( Text(
"Here are some things to keep in mind:", "Here are some things to keep in mind:",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpSubtitleSize, fontSize: popUpSubtitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -621,7 +621,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -642,7 +642,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -659,10 +659,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -672,14 +672,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Internet Connection Lost!", "Internet Connection Lost!",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -689,7 +689,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"We seem to be having some trouble connecting you to the internet. This could be due to a temporary outage or an issue with your device's connection.", "We seem to be having some trouble connecting you to the internet. This could be due to a temporary outage or an issue with your device's connection.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -698,7 +698,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Text( Text(
"Here are a few things you can try:", "Here are a few things you can try:",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpSubtitleSize, fontSize: popUpSubtitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -709,7 +709,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -730,7 +730,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -747,10 +747,10 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -760,14 +760,14 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
Icon( Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Location Services Not Enabled", "Location Services Not Enabled",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -777,7 +777,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
"To get the most out of MIH, we need your location. Please go to the site settings of the app and enable location services. Once you do that, we can start showing you relevant information based on your location.", "To get the most out of MIH, we need your location. Please go to the site settings of the app and enable location services. Once you do that, we can start showing you relevant information based on your location.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -786,7 +786,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
// Text( // Text(
// "Here are a few things you can try:", // "Here are a few things you can try:",
// style: TextStyle( // style: TextStyle(
// color: MzanziInnovationHub.of(context)!.theme.errorColor(), // color: MzansiInnovationHub.of(context)!.theme.errorColor(),
// fontSize: popUpSubtitleSize, // fontSize: popUpSubtitleSize,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// ), // ),
@@ -797,7 +797,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
// textAlign: TextAlign.left, // textAlign: TextAlign.left,
// style: TextStyle( // style: TextStyle(
// color: // color:
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), // MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// fontSize: popUpBodySize, // fontSize: popUpBodySize,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// ), // ),
@@ -818,7 +818,7 @@ class _MIHErrorMessageState extends State<MIHErrorMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),

View File

@@ -20,7 +20,7 @@ class _MihloadingcircleState extends State<Mihloadingcircle> {
late double height; late double height;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = 250; popUpWidth = 250;
popUpheight = 250; popUpheight = 250;
@@ -58,18 +58,18 @@ class _MihloadingcircleState extends State<Mihloadingcircle> {
// width: 250, // width: 250,
// height: 275, // height: 275,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
width: 5.0), width: 5.0),
), ),
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
GifView.asset( GifView.asset(
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.loadingImageLocation(), .loadingImageLocation(),
height: 200, height: 200,

View File

@@ -30,7 +30,7 @@ class _MIHNotificationMessageState extends State<MIHNotificationMessage>
Size? size; Size? size;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (size!.width / 4) * 2; popUpWidth = (size!.width / 4) * 2;
popUpheight = 90; popUpheight = 90;
@@ -131,8 +131,8 @@ class _MIHNotificationMessageState extends State<MIHNotificationMessage>
void initState() { void initState() {
super.initState(); super.initState();
setState(() { setState(() {
primary = MzanziInnovationHub.of(context)!.theme.primaryColor(); primary = MzansiInnovationHub.of(context)!.theme.primaryColor();
secondary = MzanziInnovationHub.of(context)!.theme.errorColor(); secondary = MzansiInnovationHub.of(context)!.theme.errorColor();
}); });
_animationController = AnimationController( _animationController = AnimationController(
vsync: this, vsync: this,

View File

@@ -28,7 +28,7 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
late Size? size; late Size? size;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (size!.width / 4) * 2; popUpWidth = (size!.width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -59,10 +59,10 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.successColor(), color: MzansiInnovationHub.of(context)!.theme.successColor(),
width: 5.0), width: 5.0),
), ),
child: Column( child: Column(
@@ -71,14 +71,14 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
Icon( Icon(
Icons.check_circle_outline_rounded, Icons.check_circle_outline_rounded,
size: popUpIconSize, size: popUpIconSize,
color: MzanziInnovationHub.of(context)!.theme.successColor(), color: MzansiInnovationHub.of(context)!.theme.successColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
"Success!", "Success!",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.successColor(), color: MzansiInnovationHub.of(context)!.theme.successColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -89,7 +89,7 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
message, message,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -101,13 +101,13 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
Navigator.pop(context); Navigator.pop(context);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Dismiss", "Dismiss",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

View File

@@ -25,7 +25,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
late double height; late double height;
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (width / 4) * 2; popUpWidth = (width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -56,10 +56,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -70,7 +70,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -78,7 +78,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -88,7 +88,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"Your access request is currently being reviewed.\nOnce approved, you'll be able to view patient data.\nPlease follow up with the patient to approve your access request.", "Your access request is currently being reviewed.\nOnce approved, you'll be able to view patient data.\nPlease follow up with the patient to approve your access request.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -109,7 +109,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -126,10 +126,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -140,7 +140,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -148,7 +148,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -158,7 +158,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"To proceed with booking an appointment, you must have access to the patient's profile. This will allow you to view their medical history and other relevant information. Please contact the appropriate administrator to request access.", "To proceed with booking an appointment, you must have access to the patient's profile. This will allow you to view their medical history and other relevant information. Please contact the appropriate administrator to request access.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -179,7 +179,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -196,10 +196,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -210,7 +210,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -218,7 +218,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -228,7 +228,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"This appointment has been canceled. As a result, you no longer have access to the patient's profile. If you would like to view the patient's profile again, please book a new appointment.", "This appointment has been canceled. As a result, you no longer have access to the patient's profile. If you would like to view the patient's profile again, please book a new appointment.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -249,7 +249,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -266,10 +266,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -280,7 +280,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -288,7 +288,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -298,7 +298,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"This appointment has been canceled. As a result, access has been cancelled and the doctor no longer have access to the patient's profile. If you would like them to view the patient's profile again, please book a new appointment through them.", "This appointment has been canceled. As a result, access has been cancelled and the doctor no longer have access to the patient's profile. If you would like them to view the patient's profile again, please book a new appointment through them.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -319,7 +319,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -336,10 +336,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -350,7 +350,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -358,7 +358,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -368,7 +368,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"Your request to access the patient's profile has been denied. Please contact the patient directly to inquire about the reason for this restriction.", "Your request to access the patient's profile has been denied. Please contact the patient directly to inquire about the reason for this restriction.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -389,7 +389,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -406,10 +406,10 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
width: popUpWidth, width: popUpWidth,
height: popUpheight, height: popUpheight,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 5.0), width: 5.0),
), ),
child: SingleChildScrollView( child: SingleChildScrollView(
@@ -420,7 +420,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: popUpIconSize, size: popUpIconSize,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//const SizedBox(height: 15), //const SizedBox(height: 15),
Text( Text(
@@ -428,7 +428,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpTitleSize, fontSize: popUpTitleSize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -438,7 +438,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
"You no longer have access to this patient profile. The authorized access period has ended. Access to a patients profile is limited to 7 days from appointment date.", "You no longer have access to this patient profile. The authorized access period has ended. Access to a patients profile is limited to 7 days from appointment date.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -459,7 +459,7 @@ class _MIHDeleteMessageState extends State<MIHWarningMessage> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),

View File

@@ -30,7 +30,7 @@ class PolicyAndTermsText {
child: FittedBox( child: FittedBox(
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -427,7 +427,7 @@ class PolicyAndTermsText {
child: FittedBox( child: FittedBox(
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),

View File

@@ -27,12 +27,12 @@ class _AboutMihTileState extends State<AboutMihTile> {
appName: "About MIH", appName: "About MIH",
appIcon: Icon( appIcon: Icon(
MihIcons.aboutMih, MihIcons.aboutMih,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -35,7 +35,7 @@ class _MihAttributesState extends State<MihAttributes> {
icon, icon,
// size: 125, // size: 125,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -71,12 +71,12 @@ class _MihAttributesState extends State<MihAttributes> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 100, width: 100,
child: Text( child: Text(
"Visit", "Visit",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -110,7 +110,7 @@ class _MihAttributesState extends State<MihAttributes> {
children: [ children: [
Icon( Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
size: 165, size: 165,
), ),
const SizedBox( const SizedBox(

View File

@@ -48,7 +48,7 @@ class _MihInfoState extends State<MihInfo> {
bio += bio +=
"6 Year of banking experience with one of the big 5 banks of South Africa."; "6 Year of banking experience with one of the big 5 banks of South Africa.";
ImageProvider logoFrame = ImageProvider logoFrame =
MzanziInnovationHub.of(context)!.theme.altLogoFrame(); MzansiInnovationHub.of(context)!.theme.altLogoFrame();
return Wrap( return Wrap(
alignment: WrapAlignment.center, alignment: WrapAlignment.center,
crossAxisAlignment: WrapCrossAlignment.center, crossAxisAlignment: WrapCrossAlignment.center,
@@ -63,7 +63,7 @@ class _MihInfoState extends State<MihInfo> {
children: [ children: [
CircleAvatar( CircleAvatar(
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
backgroundImage: const AssetImage( backgroundImage: const AssetImage(
"lib/mih_components/mih_package_components/assets/images/founder.jpg"), "lib/mih_components/mih_package_components/assets/images/founder.jpg"),
//'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'), //'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'),
@@ -231,12 +231,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.youtube, FontAwesomeIcons.youtube,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 175, size: 175,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -247,12 +247,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.tiktok, FontAwesomeIcons.tiktok,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -263,12 +263,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.twitch, FontAwesomeIcons.twitch,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -279,12 +279,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.threads, FontAwesomeIcons.threads,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -295,12 +295,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.whatsapp, FontAwesomeIcons.whatsapp,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -311,12 +311,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.instagram, FontAwesomeIcons.instagram,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
@@ -328,12 +328,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.xTwitter, FontAwesomeIcons.xTwitter,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -344,12 +344,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.linkedin, FontAwesomeIcons.linkedin,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -360,12 +360,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.facebook, FontAwesomeIcons.facebook,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -376,12 +376,12 @@ class _MihInfoState extends State<MihInfo> {
tileIcon: Center( tileIcon: Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.reddit, FontAwesomeIcons.reddit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
size: 200, size: 200,
), ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
socials.add(MIHTile( socials.add(MIHTile(
@@ -393,19 +393,19 @@ class _MihInfoState extends State<MihInfo> {
child: Text( child: Text(
"KICK", "KICK",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 100, fontSize: 100,
), ),
), ),
// FaIcon( // FaIcon(
// FontAwesomeIcons.tv, // FontAwesomeIcons.tv,
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// size: 200, // size: 200,
// ), // ),
), ),
p: MzanziInnovationHub.of(context)!.theme.secondaryColor(), p: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
s: MzanziInnovationHub.of(context)!.theme.primaryColor(), s: MzansiInnovationHub.of(context)!.theme.primaryColor(),
)); ));
//================================================================== //==================================================================
return socials; return socials;
@@ -426,10 +426,10 @@ class _MihInfoState extends State<MihInfo> {
return "Install MIH (Play Store)"; return "Install MIH (Play Store)";
} else if (isWebIos) { } else if (isWebIos) {
return "Install MIH (PWA)"; return "Install MIH (PWA)";
} else if (MzanziInnovationHub.of(context)!.theme.getPlatform() == } else if (MzansiInnovationHub.of(context)!.theme.getPlatform() ==
"Android") { "Android") {
return "Update MIH (Play Store)"; return "Update MIH (Play Store)";
} else if (MzanziInnovationHub.of(context)!.theme.getPlatform() == "iOS") { } else if (MzansiInnovationHub.of(context)!.theme.getPlatform() == "iOS") {
return "Update MIH (App Store)"; return "Update MIH (App Store)";
} else { } else {
return "Install MIH (PWA)"; return "Install MIH (PWA)";
@@ -464,7 +464,7 @@ class _MihInfoState extends State<MihInfo> {
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -479,7 +479,7 @@ class _MihInfoState extends State<MihInfo> {
), ),
), ),
Text( Text(
"MIH App Version: ${MzanziInnovationHub.of(context)!.theme.getLatestVersion()}", "MIH App Version: ${MzansiInnovationHub.of(context)!.theme.getLatestVersion()}",
style: const TextStyle( style: const TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
fontSize: 15, fontSize: 15,
@@ -516,12 +516,12 @@ class _MihInfoState extends State<MihInfo> {
MihInstallServices().installMihTrigger(context); MihInstallServices().installMihTrigger(context);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
getInstallButtonText(), getInstallButtonText(),
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -538,12 +538,12 @@ class _MihInfoState extends State<MihInfo> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"MIH Beginners Guide", "MIH Beginners Guide",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -587,17 +587,17 @@ class _MihInfoState extends State<MihInfo> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.vpn_lock, Icons.vpn_lock,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "MIH - Web", label: "MIH - Web",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
shareMIHLink( shareMIHLink(
context, context,
@@ -609,17 +609,17 @@ class _MihInfoState extends State<MihInfo> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.apple, Icons.apple,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "MIH - iOS", label: "MIH - iOS",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
shareMIHLink( shareMIHLink(
context, context,
@@ -631,17 +631,17 @@ class _MihInfoState extends State<MihInfo> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.android, Icons.android,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "MIH - Android", label: "MIH - Android",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
shareMIHLink( shareMIHLink(
context, context,

View File

@@ -132,25 +132,25 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.successColor())); color: MzansiInnovationHub.of(context)!.theme.successColor()));
} else if (access == "PENDING") { } else if (access == "PENDING") {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor())); MzansiInnovationHub.of(context)!.theme.messageTextColor()));
} else { } else {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor())); color: MzansiInnovationHub.of(context)!.theme.errorColor()));
} }
return ListTile( return ListTile(
title: Text( title: Text(
line1, line1,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: RichText( subtitle: RichText(
@@ -166,7 +166,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
// Text( // Text(
// subtitle, // subtitle,
// style: TextStyle( // style: TextStyle(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// ), // ),
onTap: () { onTap: () {
@@ -178,13 +178,13 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
}, },
// trailing: Icon( // trailing: Icon(
// Icons.arrow_forward, // Icons.arrow_forward,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
); );
} }
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (width / 4) * 2; popUpWidth = (width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -234,7 +234,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
), ),
@@ -249,12 +249,12 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
updateAccessAPICall(index, "declined"); updateAccessAPICall(index, "declined");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Decline", "Decline",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -267,12 +267,12 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
updateAccessAPICall(index, "approved"); updateAccessAPICall(index, "approved");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Approve", "Approve",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -311,7 +311,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.accessRequests.length, itemCount: widget.accessRequests.length,

View File

@@ -85,25 +85,25 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.successColor())); color: MzansiInnovationHub.of(context)!.theme.successColor()));
} else if (access == "PENDING") { } else if (access == "PENDING") {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor())); MzansiInnovationHub.of(context)!.theme.messageTextColor()));
} else { } else {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor())); color: MzansiInnovationHub.of(context)!.theme.errorColor()));
} }
return ListTile( return ListTile(
title: Text( title: Text(
line1, line1,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: RichText( subtitle: RichText(
@@ -118,7 +118,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
// Text( // Text(
// subtitle, // subtitle,
// style: TextStyle( // style: TextStyle(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// ), // ),
onTap: () { onTap: () {
@@ -126,13 +126,13 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
}, },
// trailing: Icon( // trailing: Icon(
// Icons.arrow_forward, // Icons.arrow_forward,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
); );
} }
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (width / 4) * 2; popUpWidth = (width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -195,7 +195,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
), ),
@@ -213,7 +213,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
Text( Text(
@@ -221,7 +221,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
SizedBox( SizedBox(
@@ -230,7 +230,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"1. Permanent Access: Once you accepts this access request, it will become permanent.", "1. Permanent Access: Once you accepts this access request, it will become permanent.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -242,7 +242,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"2. Shared Information: Any updates make to youe patient profile will be visible to all who have access to the profile.", "2. Shared Information: Any updates make to youe patient profile will be visible to all who have access to the profile.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -254,7 +254,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"3. Irreversible Access: Once granted, you cannot revoke access to your patient's profile.", "3. Irreversible Access: Once granted, you cannot revoke access to your patient's profile.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -265,7 +265,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
], ],
@@ -282,7 +282,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
Text( Text(
@@ -290,7 +290,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
SizedBox( SizedBox(
@@ -299,7 +299,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"1. Permanent Access: This access is permanent.", "1. Permanent Access: This access is permanent.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -311,7 +311,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"2. Shared Information: Any updates make to youe patient profile will be visible to all who have access to the profile.", "2. Shared Information: Any updates make to youe patient profile will be visible to all who have access to the profile.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -323,7 +323,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
"3. Irreversible Access: You cannot revoke this access to your patient's profile.", "3. Irreversible Access: You cannot revoke this access to your patient's profile.",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -356,12 +356,12 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Decline", "Decline",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -383,12 +383,12 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Approve", "Approve",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -428,7 +428,7 @@ class _BuildPatientsListState extends State<BuildBusinessAccessList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.patientAccessList.length, itemCount: widget.patientAccessList.length,

View File

@@ -31,12 +31,12 @@ class _MihAccessTileState extends State<MihAccessTile> {
appName: "Access Controls", appName: "Access Controls",
appIcon: Icon( appIcon: Icon(
MihIcons.accessControl, MihIcons.accessControl,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -191,7 +191,7 @@ class _MihAccessRequestState extends State<MihAccessRequest> {
"No Request have been made.", "No Request have been made.",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.messageTextColor()), .messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -208,7 +208,7 @@ class _MihAccessRequestState extends State<MihAccessRequest> {
"$errorCode: Error pulling Patients Data\n$baseUrl/queue/patients/\n$errorBody", "$errorCode: Error pulling Patients Data\n$baseUrl/queue/patients/\n$errorBody",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor()), .errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,

View File

@@ -46,9 +46,9 @@ class _AuthCheckState extends State<AuthCheck> {
// SchedulerBinding.instance.platformDispatcher.platformBrightness; // SchedulerBinding.instance.platformDispatcher.platformBrightness;
// bool isDarkMode = brightness == Brightness.dark; // bool isDarkMode = brightness == Brightness.dark;
// if (isDarkMode) { // if (isDarkMode) {
// MzanziInnovationHub.of(context)!.theme.mode = "Dark"; // MzansiInnovationHub.of(context)!.theme.mode = "Dark";
// } else { // } else {
// MzanziInnovationHub.of(context)!.theme.mode = "Light"; // MzansiInnovationHub.of(context)!.theme.mode = "Light";
// } // }
super.initState(); super.initState();
} }

View File

@@ -38,7 +38,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
child: FittedBox( child: FittedBox(
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -109,7 +109,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
Widget alertpopUp = MihPackageAlert( Widget alertpopUp = MihPackageAlert(
alertIcon: Icon( alertIcon: Icon(
Icons.fingerprint, Icons.fingerprint,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 100, size: 100,
), ),
alertTitle: "Biometric Authentication Error", alertTitle: "Biometric Authentication Error",
@@ -120,7 +120,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
"Hi there! To jump into the MIH Home Package, you'll need to authenticate yourself with your phones biometrics, please set up biometric authentication (like fingerprint, face ID, pattern or pin) on your device first.\n\nIf you have already set up biometric authentication, press \"Authenticate now\" to try again or press \"Set Up Authentication\" to go to your device settings.", "Hi there! To jump into the MIH Home Package, you'll need to authenticate yourself with your phones biometrics, please set up biometric authentication (like fingerprint, face ID, pattern or pin) on your device first.\n\nIf you have already set up biometric authentication, press \"Authenticate now\" to try again or press \"Set Up Authentication\" to go to your device settings.",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
@@ -138,13 +138,13 @@ class _BiometricCheckState extends State<BiometricCheck> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"Set Up Authentication", "Set Up Authentication",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -156,13 +156,13 @@ class _BiometricCheckState extends State<BiometricCheck> {
authenticateUser(); authenticateUser();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Authenticate Now", "Authenticate Now",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -172,7 +172,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
showDialog( showDialog(
context: context, context: context,
@@ -198,7 +198,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
Icons.fingerprint, Icons.fingerprint,
size: 100, size: 100,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -209,7 +209,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -221,7 +221,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
Icons.lock, Icons.lock,
size: 200, size: 200,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
MihButton( MihButton(
@@ -229,12 +229,12 @@ class _BiometricCheckState extends State<BiometricCheck> {
authenticateUser(); authenticateUser();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Authenticate Now", "Authenticate Now",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -274,7 +274,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
if (MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web") { if (MzansiInnovationHub.of(context)!.theme.getPlatform() == "Web") {
return MIHProfileGetter( return MIHProfileGetter(
personalSelected: widget.personalSelected, personalSelected: widget.personalSelected,
); );

View File

@@ -79,11 +79,11 @@ class _ForgotPasswordState extends State<ForgotPassword> {
} }
Color getPrim() { Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} }
Color getSec() { Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor(); return MzansiInnovationHub.of(context)!.theme.primaryColor();
} }
void prePassResteWarning() { void prePassResteWarning() {
@@ -94,7 +94,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
alertTitle: "Password Reset Confirmation", alertTitle: "Password Reset Confirmation",
alertBody: Column( alertBody: Column(
@@ -106,7 +106,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
"Before you reset your password, please be aware that you'll receive an email with a link to confirm your identity and set a new password. Make sure to check your inbox, including spam or junk folders. If you don't receive the email within a few minutes, please try resending the reset request.", "Before you reset your password, please be aware that you'll receive an email with a link to confirm your identity and set a new password. Make sure to check your inbox, including spam or junk folders. If you don't receive the email within a few minutes, please try resending the reset request.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15.0, fontSize: 15.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -122,13 +122,13 @@ class _ForgotPasswordState extends State<ForgotPassword> {
validateInput(); validateInput();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Continue", "Continue",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -136,7 +136,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.secondaryColor(), alertColour: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
); );
@@ -223,7 +223,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric( ? EdgeInsets.symmetric(
vertical: 25, horizontal: width * 0.2) vertical: 25, horizontal: width * 0.2)
@@ -236,7 +236,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -248,7 +248,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -258,10 +258,10 @@ class _ForgotPasswordState extends State<ForgotPassword> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -286,14 +286,14 @@ class _ForgotPasswordState extends State<ForgotPassword> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Reset Password", "Reset Password",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -231,7 +231,7 @@ class _RegisterState extends State<Register> {
Widget getSecondaryActionButton() { Widget getSecondaryActionButton() {
return Visibility( return Visibility(
visible: MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web", visible: MzansiInnovationHub.of(context)!.theme.getPlatform() == "Web",
child: MIHAction( child: MIHAction(
icon: Padding( icon: Padding(
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
@@ -239,12 +239,12 @@ class _RegisterState extends State<Register> {
onPressed: () { onPressed: () {
MihInstallServices().installMihTrigger(context); MihInstallServices().installMihTrigger(context);
}, },
buttonColor: MzanziInnovationHub.of(context)!.theme.successColor(), buttonColor: MzansiInnovationHub.of(context)!.theme.successColor(),
width: 150, width: 150,
child: Text( child: Text(
"Install MIH", "Install MIH",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -268,7 +268,7 @@ class _RegisterState extends State<Register> {
child: FittedBox( child: FittedBox(
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -320,7 +320,7 @@ class _RegisterState extends State<Register> {
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
@@ -331,7 +331,7 @@ class _RegisterState extends State<Register> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -343,7 +343,7 @@ class _RegisterState extends State<Register> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -355,10 +355,10 @@ class _RegisterState extends State<Register> {
formFields: [ formFields: [
//email input //email input
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -374,10 +374,10 @@ class _RegisterState extends State<Register> {
const SizedBox(height: 10), const SizedBox(height: 10),
//password input //password input
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: passwordController, controller: passwordController,
@@ -394,10 +394,10 @@ class _RegisterState extends State<Register> {
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: confirmPasswordController, controller: confirmPasswordController,
@@ -430,14 +430,14 @@ class _RegisterState extends State<Register> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Create New Account", "Create New Account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -447,14 +447,14 @@ class _RegisterState extends State<Register> {
), ),
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"I have an account", "I have an account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -98,11 +98,11 @@ class _ResetPasswordState extends State<ResetPassword> {
} }
Color getPrim() { Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} }
Color getSec() { Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor(); return MzansiInnovationHub.of(context)!.theme.primaryColor();
} }
void loginError() { void loginError() {
@@ -203,7 +203,7 @@ class _ResetPasswordState extends State<ResetPassword> {
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
@@ -214,7 +214,7 @@ class _ResetPasswordState extends State<ResetPassword> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -226,7 +226,7 @@ class _ResetPasswordState extends State<ResetPassword> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -237,10 +237,10 @@ class _ResetPasswordState extends State<ResetPassword> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: passwordController, controller: passwordController,
@@ -257,10 +257,10 @@ class _ResetPasswordState extends State<ResetPassword> {
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: confirmPasswordController, controller: confirmPasswordController,
@@ -288,14 +288,14 @@ class _ResetPasswordState extends State<ResetPassword> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Reset Password", "Reset Password",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -87,11 +87,11 @@ class _SignInState extends State<SignIn> {
} }
Color getPrim() { Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} }
Color getSec() { Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor(); return MzansiInnovationHub.of(context)!.theme.primaryColor();
} }
void setSandboxProfiles(List<MIHTile> tileList) { void setSandboxProfiles(List<MIHTile> tileList) {
@@ -211,7 +211,7 @@ class _SignInState extends State<SignIn> {
context: context, context: context,
builder: (context) { builder: (context) {
return Dialog( return Dialog(
//backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), //backgroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: Stack( child: Stack(
children: [ children: [
Container( Container(
@@ -219,10 +219,10 @@ class _SignInState extends State<SignIn> {
width: 500.0, width: 500.0,
height: 500, height: 500,
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 5.0), width: 5.0),
@@ -234,7 +234,7 @@ class _SignInState extends State<SignIn> {
"Sandbox Profiles", "Sandbox Profiles",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 25.0, fontSize: 25.0,
@@ -246,7 +246,7 @@ class _SignInState extends State<SignIn> {
"NB: These accounts are used for test purposes. Please do not store personal information on these profiles.", "NB: These accounts are used for test purposes. Please do not store personal information on these profiles.",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15.0, fontSize: 15.0,
@@ -281,7 +281,7 @@ class _SignInState extends State<SignIn> {
}, },
icon: Icon( icon: Icon(
Icons.close, Icons.close,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 35, size: 35,
), ),
), ),
@@ -295,7 +295,7 @@ class _SignInState extends State<SignIn> {
Widget getSecondaryActionButton() { Widget getSecondaryActionButton() {
return Visibility( return Visibility(
visible: MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web", visible: MzansiInnovationHub.of(context)!.theme.getPlatform() == "Web",
child: MIHAction( child: MIHAction(
icon: Padding( icon: Padding(
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
@@ -303,12 +303,12 @@ class _SignInState extends State<SignIn> {
onPressed: () { onPressed: () {
MihInstallServices().installMihTrigger(context); MihInstallServices().installMihTrigger(context);
}, },
buttonColor: MzanziInnovationHub.of(context)!.theme.successColor(), buttonColor: MzansiInnovationHub.of(context)!.theme.successColor(),
width: 150, width: 150,
child: Text( child: Text(
"Install MIH", "Install MIH",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -335,7 +335,7 @@ class _SignInState extends State<SignIn> {
child: FittedBox( child: FittedBox(
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -387,7 +387,7 @@ class _SignInState extends State<SignIn> {
child: SingleChildScrollView( child: SingleChildScrollView(
physics: const BouncingScrollPhysics(), physics: const BouncingScrollPhysics(),
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
@@ -399,7 +399,7 @@ class _SignInState extends State<SignIn> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -411,7 +411,7 @@ class _SignInState extends State<SignIn> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -422,10 +422,10 @@ class _SignInState extends State<SignIn> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -442,10 +442,10 @@ class _SignInState extends State<SignIn> {
const SizedBox(height: 10), const SizedBox(height: 10),
//password input //password input
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: passwordController, controller: passwordController,
@@ -476,7 +476,7 @@ class _SignInState extends State<SignIn> {
'Forgot Password?', 'Forgot Password?',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@@ -507,14 +507,14 @@ class _SignInState extends State<SignIn> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Sign In", "Sign In",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -525,14 +525,14 @@ class _SignInState extends State<SignIn> {
MihButton( MihButton(
onPressed: widget.onTap, onPressed: widget.onTap,
buttonColor: buttonColor:
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"Create New Account", "Create New Account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -569,7 +569,7 @@ class _SignInState extends State<SignIn> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of( color: MzansiInnovationHub.of(
context)! context)!
.theme .theme
.secondaryColor()), .secondaryColor()),
@@ -620,7 +620,7 @@ class _SignInState extends State<SignIn> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15.0, fontSize: 15.0,

View File

@@ -30,12 +30,12 @@ class _MihCalculatorTileState extends State<MihCalculatorTile> {
appName: "Calculator", appName: "Calculator",
appIcon: Icon( appIcon: Icon(
MihIcons.calculator, MihIcons.calculator,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -76,7 +76,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
Icon( Icon(
Icons.currency_exchange, Icons.currency_exchange,
size: 150, size: 150,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
FittedBox( FittedBox(
@@ -87,7 +87,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -102,7 +102,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -116,7 +116,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -135,7 +135,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -149,7 +149,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -186,7 +186,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
@@ -206,7 +206,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
'$companyName makes no representations or warranties of any kind, express or implied, as to the accuracy, completeness, reliability, or suitability of the information and calculations generated by the Tool. All exchange rates and results are estimates and are subject to change without notice.', '$companyName makes no representations or warranties of any kind, express or implied, as to the accuracy, completeness, reliability, or suitability of the information and calculations generated by the Tool. All exchange rates and results are estimates and are subject to change without notice.',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
), ),
@@ -217,7 +217,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
'The information provided by the Tool should not be construed as financial, investment, trading, or any other form of advice. You should not make any financial decisions based solely on the output of this Tool. We expressly recommend that you seek independent professional advice and verify all data with a qualified financial advisor and/or through alternative, reliable market data sources before executing any foreign exchange transactions.', 'The information provided by the Tool should not be construed as financial, investment, trading, or any other form of advice. You should not make any financial decisions based solely on the output of this Tool. We expressly recommend that you seek independent professional advice and verify all data with a qualified financial advisor and/or through alternative, reliable market data sources before executing any foreign exchange transactions.',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
), ),
@@ -228,7 +228,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
'By using the Tool, you agree that $companyName, its affiliates, directors, and employees shall not be held liable for any direct, indirect, incidental, special, consequential, or exemplary damages, including but not limited to, damages for loss of profits, goodwill, use, data, or other intangible losses, resulting from: (i) the use or the inability to use the Tool; (ii) any inaccuracies, errors, or omissions in the Tool\'s calculations or data; or (iii) any reliance placed by you on the information provided by the Tool.', 'By using the Tool, you agree that $companyName, its affiliates, directors, and employees shall not be held liable for any direct, indirect, incidental, special, consequential, or exemplary damages, including but not limited to, damages for loss of profits, goodwill, use, data, or other intangible losses, resulting from: (i) the use or the inability to use the Tool; (ii) any inaccuracies, errors, or omissions in the Tool\'s calculations or data; or (iii) any reliance placed by you on the information provided by the Tool.',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
), ),
@@ -243,7 +243,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
), ),
children: <TextSpan>[ children: <TextSpan>[
@@ -290,7 +290,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
} else if (snapshot.connectionState == ConnectionState.done) { } else if (snapshot.connectionState == ConnectionState.done) {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
@@ -300,10 +300,10 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
formKey: _formKey, formKey: _formKey,
formFields: <Widget>[ formFields: <Widget>[
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: _fromAmountController, controller: _fromAmountController,
@@ -345,7 +345,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
text: TextSpan( text: TextSpan(
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
), ),
@@ -357,7 +357,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
text: "Diclaimer", text: "Diclaimer",
style: TextStyle( style: TextStyle(
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@@ -388,14 +388,14 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Calculate", "Calculate",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -407,14 +407,14 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
onPressed: () { onPressed: () {
clearInput(); clearInput();
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Clear", "Clear",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -437,7 +437,7 @@ class _CurrencyExchangeRateState extends State<CurrencyExchangeRate> {
"Error pulling Currency Exchange Data.", "Error pulling Currency Exchange Data.",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.errorColor()), color: MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );

View File

@@ -87,7 +87,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
// print("height: $height"); // print("height: $height");
// print("newheight: $newheight"); // print("newheight: $newheight");
double calcWidth = 500; double calcWidth = 500;
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
if (height < 700) { if (height < 700) {
calcWidth = 300; calcWidth = 300;
} }
@@ -108,7 +108,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
style: TextStyle( style: TextStyle(
fontSize: 40, fontSize: 40,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -123,7 +123,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
), ),
), ),
@@ -165,7 +165,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -186,7 +186,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
userInput += buttons[index]; userInput += buttons[index];
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.messageTextColor(), .messageTextColor(),
width: 50, width: 50,
@@ -195,7 +195,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -215,7 +215,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
userInput += buttons[index]; userInput += buttons[index];
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.messageTextColor(), .messageTextColor(),
width: 50, width: 50,
@@ -224,7 +224,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -255,7 +255,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
}); });
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.messageTextColor(), .messageTextColor(),
width: 50, width: 50,
@@ -264,7 +264,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -296,13 +296,13 @@ class _SimpleCalcState extends State<SimpleCalc> {
}); });
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 50, width: 50,
height: 50, height: 50,
borderRadius: 5, borderRadius: 5,
child: Icon( child: Icon(
Icons.backspace, Icons.backspace,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
@@ -320,7 +320,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
userInput = answer; userInput = answer;
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 50, width: 50,
@@ -329,7 +329,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -350,7 +350,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
equalPressed(); equalPressed();
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 50, width: 50,
@@ -359,7 +359,7 @@ class _SimpleCalcState extends State<SimpleCalc> {
child: Text( child: Text(
buttons[index], buttons[index],
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -111,7 +111,7 @@ class _TipCalcState extends State<TipCalc> {
FaIcon( FaIcon(
FontAwesomeIcons.coins, FontAwesomeIcons.coins,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
size: 35, size: 35,
), ),
const SizedBox(width: 15), const SizedBox(width: 15),
@@ -122,7 +122,7 @@ class _TipCalcState extends State<TipCalc> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -133,7 +133,7 @@ class _TipCalcState extends State<TipCalc> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const Divider(), const Divider(),
@@ -144,7 +144,7 @@ class _TipCalcState extends State<TipCalc> {
FaIcon( FaIcon(
FontAwesomeIcons.moneyBills, FontAwesomeIcons.moneyBills,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
size: 35, size: 35,
), ),
const SizedBox(width: 15), const SizedBox(width: 15),
@@ -155,7 +155,7 @@ class _TipCalcState extends State<TipCalc> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -166,7 +166,7 @@ class _TipCalcState extends State<TipCalc> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
Text( Text(
@@ -175,7 +175,7 @@ class _TipCalcState extends State<TipCalc> {
style: TextStyle( style: TextStyle(
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
if (splitBillController.text == "Yes") const Divider(), if (splitBillController.text == "Yes") const Divider(),
@@ -187,7 +187,7 @@ class _TipCalcState extends State<TipCalc> {
FaIcon( FaIcon(
FontAwesomeIcons.peopleGroup, FontAwesomeIcons.peopleGroup,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
size: 35, size: 35,
), ),
const SizedBox(width: 15), const SizedBox(width: 15),
@@ -197,7 +197,7 @@ class _TipCalcState extends State<TipCalc> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -212,7 +212,7 @@ class _TipCalcState extends State<TipCalc> {
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
if (splitBillController.text == "Yes") if (splitBillController.text == "Yes")
@@ -223,7 +223,7 @@ class _TipCalcState extends State<TipCalc> {
fontSize: 30, fontSize: 30,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
SizedBox(height: 10), SizedBox(height: 10),
@@ -257,7 +257,7 @@ class _TipCalcState extends State<TipCalc> {
Widget getBody(double width) { Widget getBody(double width) {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == "desktop" padding: MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -268,9 +268,9 @@ class _TipCalcState extends State<TipCalc> {
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: billAmountController, controller: billAmountController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -283,9 +283,9 @@ class _TipCalcState extends State<TipCalc> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: tipPercentageController, controller: tipPercentageController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -300,9 +300,9 @@ class _TipCalcState extends State<TipCalc> {
hintText: "Split Bill", hintText: "Split Bill",
initialPostion: splitPosition, initialPostion: splitPosition,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (value) { onChange: (value) {
setState(() { setState(() {
splitBillController.text = value ? "Yes" : "No"; splitBillController.text = value ? "Yes" : "No";
@@ -339,10 +339,10 @@ class _TipCalcState extends State<TipCalc> {
children: [ children: [
MihNumericStepper( MihNumericStepper(
controller: noPeopleController, controller: noPeopleController,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
hintText: "No. People", hintText: "No. People",
@@ -352,10 +352,10 @@ class _TipCalcState extends State<TipCalc> {
validationOn: true, validationOn: true,
), ),
// MihTextFormField( // MihTextFormField(
// fillColor: MzanziInnovationHub.of(context)! // fillColor: MzansiInnovationHub.of(context)!
// .theme // .theme
// .secondaryColor(), // .secondaryColor(),
// inputColor: MzanziInnovationHub.of(context)! // inputColor: MzansiInnovationHub.of(context)!
// .theme // .theme
// .primaryColor(), // .primaryColor(),
// controller: noPeopleController, // controller: noPeopleController,
@@ -392,14 +392,14 @@ class _TipCalcState extends State<TipCalc> {
MihAlertServices().formNotFilledCompletely(context); MihAlertServices().formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Calculate", "Calculate",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -412,12 +412,12 @@ class _TipCalcState extends State<TipCalc> {
clearInput(); clearInput();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Clear", "Clear",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -134,25 +134,25 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.successColor())); color: MzansiInnovationHub.of(context)!.theme.successColor()));
} else if (access == "PENDING") { } else if (access == "PENDING") {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor())); MzansiInnovationHub.of(context)!.theme.messageTextColor()));
} else { } else {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor())); color: MzansiInnovationHub.of(context)!.theme.errorColor()));
} }
return ListTile( return ListTile(
title: Text( title: Text(
line1, line1,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: RichText( subtitle: RichText(
@@ -168,7 +168,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
// Text( // Text(
// subtitle, // subtitle,
// style: TextStyle( // style: TextStyle(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// ), // ),
onTap: () { onTap: () {
@@ -180,13 +180,13 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
}, },
// trailing: Icon( // trailing: Icon(
// Icons.arrow_forward, // Icons.arrow_forward,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
); );
} }
void checkScreenSize() { void checkScreenSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
setState(() { setState(() {
popUpWidth = (width / 4) * 2; popUpWidth = (width / 4) * 2;
popUpheight = null; popUpheight = null;
@@ -236,7 +236,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: popUpBodySize, fontSize: popUpBodySize,
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
), ),
@@ -251,12 +251,12 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
updateAccessAPICall(index, "declined"); updateAccessAPICall(index, "declined");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Decline", "Decline",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -269,12 +269,12 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
updateAccessAPICall(index, "approved"); updateAccessAPICall(index, "approved");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Approve", "Approve",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -313,7 +313,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.accessRequests.length, itemCount: widget.accessRequests.length,

View File

@@ -65,7 +65,7 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
late double height; late double height;
double getPaddingSize() { double getPaddingSize() {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
return (width / 10); return (width / 10);
} else { } else {
return 0.0; return 0.0;
@@ -89,18 +89,18 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
// print("Appointment Date: $appointDate"); // print("Appointment Date: $appointDate");
// print("Appointment Hour: $appointHour"); // print("Appointment Hour: $appointHour");
Color appointmentColor = Color appointmentColor =
MzanziInnovationHub.of(context)!.theme.secondaryColor(); MzansiInnovationHub.of(context)!.theme.secondaryColor();
if (date == appointDate) { if (date == appointDate) {
if (appointHour < hourNow) { if (appointHour < hourNow) {
appointmentColor = appointmentColor =
MzanziInnovationHub.of(context)!.theme.messageTextColor(); MzansiInnovationHub.of(context)!.theme.messageTextColor();
} else if (appointHour == hourNow) { } else if (appointHour == hourNow) {
appointmentColor = appointmentColor =
MzanziInnovationHub.of(context)!.theme.successColor(); MzansiInnovationHub.of(context)!.theme.successColor();
} }
} else if (DateTime.parse(appointDate).isBefore(DateTime.parse(date))) { } else if (DateTime.parse(appointDate).isBefore(DateTime.parse(date))) {
appointmentColor = appointmentColor =
MzanziInnovationHub.of(context)!.theme.messageTextColor(); MzansiInnovationHub.of(context)!.theme.messageTextColor();
} }
return Container( return Container(
@@ -158,17 +158,17 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.edit, Icons.edit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Edit Appointment", label: "Edit Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
appointmentUpdateWindow(index, bodyWidth); appointmentUpdateWindow(index, bodyWidth);
}, },
@@ -176,17 +176,17 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Delete Appointment", label: "Delete Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
deleteAppointmentConfirmationWindow(index); deleteAppointmentConfirmationWindow(index);
}, },
@@ -201,7 +201,7 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -209,9 +209,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.titleController, controller: widget.titleController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -221,9 +221,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.dateController, controller: widget.dateController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -233,9 +233,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.timeController, controller: widget.timeController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -245,9 +245,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.descriptionIDController, controller: widget.descriptionIDController,
multiLineInput: true, multiLineInput: true,
height: 250, height: 250,
@@ -276,17 +276,17 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.edit, Icons.edit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Edit Appointment", label: "Edit Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
appointmentUpdateWindow(index, bodyWidth); appointmentUpdateWindow(index, bodyWidth);
}, },
@@ -294,17 +294,17 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Delete Appointment", label: "Delete Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
deleteAppointmentConfirmationWindow(index); deleteAppointmentConfirmationWindow(index);
}, },
@@ -319,7 +319,7 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -327,9 +327,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.titleController, controller: widget.titleController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -339,9 +339,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.dateController, controller: widget.dateController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -351,9 +351,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.timeController, controller: widget.timeController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -363,9 +363,9 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.descriptionIDController, controller: widget.descriptionIDController,
multiLineInput: true, multiLineInput: true,
height: 250, height: 250,
@@ -416,7 +416,7 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -425,11 +425,11 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.titleController, controller: widget.titleController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -458,11 +458,11 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: widget.descriptionIDController, controller: widget.descriptionIDController,
multiLineInput: true, multiLineInput: true,
height: 250, height: 250,
@@ -488,14 +488,14 @@ class _BuildAppointmentListState extends State<BuildAppointmentList> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -44,7 +44,7 @@ class _BuildQueueListState extends State<BuildQueueList> {
title: Text( title: Text(
title, title,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: RichText( subtitle: RichText(
@@ -121,7 +121,7 @@ class _BuildQueueListState extends State<BuildQueueList> {
shrinkWrap: true, shrinkWrap: true,
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.patientQueue.length, itemCount: widget.patientQueue.length,

View File

@@ -31,12 +31,12 @@ class _MzansiCalendarTileState extends State<MzansiCalendarTile> {
appName: "Calendar", appName: "Calendar",
appIcon: Icon( appIcon: Icon(
MihIcons.calendar, MihIcons.calendar,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -90,7 +90,7 @@ class _PatientAccessRequestState extends State<Appointments> {
"No Appointments for $selectedDay", "No Appointments for $selectedDay",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor(), color: MzansiInnovationHub.of(context)!.theme.messageTextColor(),
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
softWrap: true, softWrap: true,
@@ -117,7 +117,7 @@ class _PatientAccessRequestState extends State<Appointments> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -126,11 +126,11 @@ class _PatientAccessRequestState extends State<Appointments> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _appointmentTitleController, controller: _appointmentTitleController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -159,11 +159,11 @@ class _PatientAccessRequestState extends State<Appointments> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _appointmentDescriptionIDController, controller: _appointmentDescriptionIDController,
multiLineInput: true, multiLineInput: true,
height: 250, height: 250,
@@ -183,14 +183,14 @@ class _PatientAccessRequestState extends State<Appointments> {
MihAlertServices().formNotFilledCompletely(context); MihAlertServices().formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -296,7 +296,7 @@ class _PatientAccessRequestState extends State<Appointments> {
}); });
}), }),
// Divider( // Divider(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
Row( Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
@@ -318,7 +318,7 @@ class _PatientAccessRequestState extends State<Appointments> {
"Error pulling appointments", "Error pulling appointments",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor()), .errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -341,17 +341,17 @@ class _PatientAccessRequestState extends State<Appointments> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.add, Icons.add,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Add Appointment", label: "Add Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
addAppointmentWindow(width); addAppointmentWindow(width);
}, },

View File

@@ -233,7 +233,7 @@ class _MihRegisterState extends State<MihRegister> {
child: MihSingleChildScroll( child: MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -243,7 +243,7 @@ class _MihRegisterState extends State<MihRegister> {
Icon( Icon(
Icons.lock, Icons.lock,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -254,7 +254,7 @@ class _MihRegisterState extends State<MihRegister> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
//spacer //spacer
@@ -265,9 +265,9 @@ class _MihRegisterState extends State<MihRegister> {
//email input //email input
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: emailController, controller: emailController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -282,9 +282,9 @@ class _MihRegisterState extends State<MihRegister> {
//password input //password input
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: passwordController, controller: passwordController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -299,9 +299,9 @@ class _MihRegisterState extends State<MihRegister> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: confirmPasswordController, controller: confirmPasswordController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -331,14 +331,14 @@ class _MihRegisterState extends State<MihRegister> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Create New Account", "Create New Account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -348,14 +348,14 @@ class _MihRegisterState extends State<MihRegister> {
), ),
MihButton( MihButton(
onPressed: widget.onExistingUserButtonTap, onPressed: widget.onExistingUserButtonTap,
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"I have an account", "I have an account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -159,11 +159,11 @@ class _MihSignInState extends State<MihSignIn> {
} }
Color getPrim() { Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} }
Color getSec() { Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor(); return MzansiInnovationHub.of(context)!.theme.primaryColor();
} }
void loginError() { void loginError() {
@@ -209,7 +209,7 @@ class _MihSignInState extends State<MihSignIn> {
child: MihSingleChildScroll( child: MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: AutofillGroup( child: AutofillGroup(
@@ -222,7 +222,7 @@ class _MihSignInState extends State<MihSignIn> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Visibility( Visibility(
visible: MzanziInnovationHub.of(context)! visible: MzansiInnovationHub.of(context)!
.theme .theme
.getPlatform() == .getPlatform() ==
"Web", "Web",
@@ -232,14 +232,14 @@ class _MihSignInState extends State<MihSignIn> {
onPressed: () { onPressed: () {
MihInstallServices().installMihTrigger(context); MihInstallServices().installMihTrigger(context);
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 150, width: 150,
child: Text( child: Text(
"Install MIH", "Install MIH",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -256,7 +256,7 @@ class _MihSignInState extends State<MihSignIn> {
Icons.lock, Icons.lock,
size: 100, size: 100,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
//spacer //spacer
const SizedBox(height: 10), const SizedBox(height: 10),
@@ -267,7 +267,7 @@ class _MihSignInState extends State<MihSignIn> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
//spacer //spacer
@@ -276,11 +276,11 @@ class _MihSignInState extends State<MihSignIn> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: emailController, controller: emailController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -294,11 +294,11 @@ class _MihSignInState extends State<MihSignIn> {
const SizedBox(height: 10), const SizedBox(height: 10),
//password input //password input
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: passwordController, controller: passwordController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -326,7 +326,7 @@ class _MihSignInState extends State<MihSignIn> {
'Forgot Password?', 'Forgot Password?',
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
@@ -356,14 +356,14 @@ class _MihSignInState extends State<MihSignIn> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Sign In", "Sign In",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -373,14 +373,14 @@ class _MihSignInState extends State<MihSignIn> {
), ),
MihButton( MihButton(
onPressed: widget.onNewUserButtonTap, onPressed: widget.onNewUserButtonTap,
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"Create New Account", "Create New Account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -417,7 +417,7 @@ class _MihSignInState extends State<MihSignIn> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 15, fontSize: 15,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor()), .secondaryColor()),
), ),
@@ -465,7 +465,7 @@ class _MihSignInState extends State<MihSignIn> {
"NB: These accounts are used for test purposes. Please do not store personal information on these profiles.", "NB: These accounts are used for test purposes. Please do not store personal information on these profiles.",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor(), .errorColor(),
fontSize: 15.0, fontSize: 15.0,

View File

@@ -57,9 +57,9 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
fileNameController: proPicController, fileNameController: proPicController,
onChange: (_) {}, onChange: (_) {},
userSelectedfile: null, userSelectedfile: null,
frameColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), frameColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
// MIHProfilePicture( // MIHProfilePicture(
// profilePictureFile: widget.propicFile, // profilePictureFile: widget.propicFile,
@@ -69,7 +69,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
// radius: 27, // radius: 27,
// drawerMode: true, // drawerMode: true,
// editable: false, // editable: false,
// frameColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), // frameColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// onChange: (newProPic) {}, // onChange: (newProPic) {},
// ), // ),
@@ -79,7 +79,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
// children: [ // children: [
// CircleAvatar( // CircleAvatar(
// backgroundColor: // backgroundColor:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// backgroundImage: widget.propicFile, // backgroundImage: widget.propicFile,
// //'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'), // //'https://media.licdn.com/dms/image/D4D03AQGd1-QhjtWWpA/profile-displayphoto-shrink_400_400/0/1671698053061?e=2147483647&v=beta&t=a3dJI5yxs5-KeXjj10LcNCFuC9IOfa8nNn3k_Qyr0CA'),
// radius: 27, // radius: 27,
@@ -110,10 +110,10 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// precacheImage( // precacheImage(
// MzanziInnovationHub.of(context)!.theme.logoImage().image, context); // MzansiInnovationHub.of(context)!.theme.logoImage().image, context);
return SafeArea( return SafeArea(
child: Drawer( child: Drawer(
//backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), //backgroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: LayoutBuilder( child: LayoutBuilder(
builder: (BuildContext context, BoxConstraints constraints) { builder: (BuildContext context, BoxConstraints constraints) {
return Stack( return Stack(
@@ -126,7 +126,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
children: [ children: [
DrawerHeader( DrawerHeader(
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -142,7 +142,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
"${widget.signedInUser.fname} ${widget.signedInUser.lname}", "${widget.signedInUser.fname} ${widget.signedInUser.lname}",
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
@@ -152,7 +152,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
@@ -162,7 +162,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
style: TextStyle( style: TextStyle(
fontSize: 10, fontSize: 10,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
@@ -178,14 +178,14 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
// Icon( // Icon(
// Icons.home_outlined, // Icons.home_outlined,
// color: // color:
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), // MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// const SizedBox(width: 25.0), // const SizedBox(width: 25.0),
// Text( // Text(
// "Home", // "Home",
// style: TextStyle( // style: TextStyle(
// //fontWeight: FontWeight.bold, // //fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)! // color: MzansiInnovationHub.of(context)!
// .theme // .theme
// .secondaryColor(), // .secondaryColor(),
// ), // ),
@@ -208,7 +208,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
children: [ children: [
Icon( Icon(
Icons.policy, Icons.policy,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -217,7 +217,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
"Privacy Policy", "Privacy Policy",
style: TextStyle( style: TextStyle(
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -237,7 +237,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
children: [ children: [
Icon( Icon(
Icons.design_services_rounded, Icons.design_services_rounded,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -246,7 +246,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
"Terms of Service", "Terms of Service",
style: TextStyle( style: TextStyle(
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -266,7 +266,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
children: [ children: [
Icon( Icon(
Icons.logout, Icons.logout,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -275,7 +275,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
"Sign Out", "Sign Out",
style: TextStyle( style: TextStyle(
//fontWeight: FontWeight.bold, //fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -310,15 +310,15 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
child: InkWell( child: InkWell(
onTap: () { onTap: () {
setState(() { setState(() {
if (MzanziInnovationHub.of(context)?.theme.mode == if (MzansiInnovationHub.of(context)?.theme.mode ==
"Dark") { "Dark") {
//darkm = !darkm; //darkm = !darkm;
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.changeTheme(ThemeMode.light); .changeTheme(ThemeMode.light);
//print("Dark Mode: $darkm"); //print("Dark Mode: $darkm");
} else { } else {
//darkm = !darkm; //darkm = !darkm;
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.changeTheme(ThemeMode.dark); .changeTheme(ThemeMode.dark);
//print("Dark Mode: $darkm"); //print("Dark Mode: $darkm");
} }
@@ -333,19 +333,19 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
child: Icon( child: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
// IconButton( // IconButton(
// onPressed: () { // onPressed: () {
// setState(() { // setState(() {
// if (MzanziInnovationHub.of(context)?.theme.mode == "Dark") { // if (MzansiInnovationHub.of(context)?.theme.mode == "Dark") {
// //darkm = !darkm; // //darkm = !darkm;
// MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.light); // MzansiInnovationHub.of(context)!.changeTheme(ThemeMode.light);
// //print("Dark Mode: $darkm"); // //print("Dark Mode: $darkm");
// } else { // } else {
// //darkm = !darkm; // //darkm = !darkm;
// MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.dark); // MzansiInnovationHub.of(context)!.changeTheme(ThemeMode.dark);
// //print("Dark Mode: $darkm"); // //print("Dark Mode: $darkm");
// } // }
// Navigator.of(context).popAndPushNamed('/'); // Navigator.of(context).popAndPushNamed('/');
@@ -353,7 +353,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
// }, // },
// icon: Icon( // icon: Icon(
// Icons.light_mode, // Icons.light_mode,
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// size: 35, // size: 35,
// ), // ),
// ), // ),

View File

@@ -117,9 +117,9 @@ class _MihHomeState extends State<MihHome> {
fileNameController: proPicController, fileNameController: proPicController,
userSelectedfile: null, userSelectedfile: null,
// frameColor: frameColor, // frameColor: frameColor,
frameColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), frameColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (_) {}, onChange: (_) {},
), ),
// MIHProfilePicture( // MIHProfilePicture(
@@ -130,7 +130,7 @@ class _MihHomeState extends State<MihHome> {
// radius: 21, // radius: 21,
// drawerMode: false, // drawerMode: false,
// editable: false, // editable: false,
// frameColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // frameColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// onChange: (newProPic) {}, // onChange: (newProPic) {},
// ), // ),
), ),

View File

@@ -86,7 +86,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
// ); // );
void setAppsNewPersonal(List<MIHTile> tileList) { void setAppsNewPersonal(List<MIHTile> tileList) {
ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage(); ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
if (widget.signedInUser.fname == "") { if (widget.signedInUser.fname == "") {
tileList.add(MIHTile( tileList.add(MIHTile(
@@ -128,8 +128,8 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
} }
void setAppsPersonal(List<MIHTile> tileList) { void setAppsPersonal(List<MIHTile> tileList) {
ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage(); ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
ImageProvider aiLogo = MzanziInnovationHub.of(context)!.theme.aiLogoImage(); ImageProvider aiLogo = MzansiInnovationHub.of(context)!.theme.aiLogoImage();
tileList.add(MIHTile( tileList.add(MIHTile(
videoID: "P2bM9eosJ_A", videoID: "P2bM9eosJ_A",
onTap: () { onTap: () {
@@ -355,7 +355,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
} }
void setAppsBusiness(List<MIHTile> tileList) { void setAppsBusiness(List<MIHTile> tileList) {
ImageProvider aiLogo = MzanziInnovationHub.of(context)!.theme.aiLogoImage(); ImageProvider aiLogo = MzansiInnovationHub.of(context)!.theme.aiLogoImage();
tileList.add(MIHTile( tileList.add(MIHTile(
videoID: "NWyJZq2ZYOM", videoID: "NWyJZq2ZYOM",
onTap: () { onTap: () {
@@ -866,18 +866,18 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Delete File", label: "Delete File",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () {}, onTap: () {},
), ),
], ],
@@ -954,11 +954,11 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
} }
Color getPrim() { Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} }
Color getSec() { Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor(); return MzansiInnovationHub.of(context)!.theme.primaryColor();
} }
bool isBusinessUser(AppUser signedInUser) { bool isBusinessUser(AppUser signedInUser) {
@@ -995,7 +995,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
// radius: 21, // radius: 21,
// drawerMode: false, // drawerMode: false,
// editable: false, // editable: false,
// frameColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // frameColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// onChange: (newProPic) {}, // onChange: (newProPic) {},
// ), // ),
), ),
@@ -1025,7 +1025,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
child: Icon( child: Icon(
Icons.circle, Icons.circle,
size: 10, size: 10,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
) )
], ],
@@ -1093,9 +1093,9 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
prefixIcon: Icons.search, prefixIcon: Icons.search,
prefixAltIcon: MihIcons.mzansiAi, prefixAltIcon: MihIcons.mzansiAi,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
print("Search Text: ${searchController.text}"); print("Search Text: ${searchController.text}");
setState(() { setState(() {
@@ -1170,11 +1170,11 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
child: Placeholder(), child: Placeholder(),
// GNav( // GNav(
// //hoverColor: Colors.lightBlueAccent, // //hoverColor: Colors.lightBlueAccent,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// iconSize: 35.0, // iconSize: 35.0,
// activeColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), // activeColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// tabBackgroundColor: // tabBackgroundColor:
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), // MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// //gap: 20, // //gap: 20,
// //padding: EdgeInsets.all(15), // //padding: EdgeInsets.all(15),
// tabs: [ // tabs: [
@@ -1220,7 +1220,7 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
} }
Future<void> refreshNotifications() async { Future<void> refreshNotifications() async {
if (MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web") { if (MzansiInnovationHub.of(context)!.theme.getPlatform() == "Web") {
html.window.location.reload(); html.window.location.reload();
} else { } else {
var responseNotification = await http.get(Uri.parse( var responseNotification = await http.get(Uri.parse(

View File

@@ -92,7 +92,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
"Connection Error", "Connection Error",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 35, fontSize: 35,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -100,7 +100,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
Icon( Icon(
Icons.power_off_outlined, Icons.power_off_outlined,
size: 150, size: 150,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
SizedBox( SizedBox(
width: 500, width: 500,
@@ -109,7 +109,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -121,12 +121,12 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
Navigator.of(context).popAndPushNamed("/"); Navigator.of(context).popAndPushNamed("/");
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Refresh", "Refresh",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -143,7 +143,7 @@ class _MIHProfileGetterState extends State<MIHProfileGetter> {
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

View File

@@ -139,7 +139,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
} }
EdgeInsets getPadding(double width, double height) { EdgeInsets getPadding(double width, double height) {
if (MzanziInnovationHub.of(context)!.theme.screenType == "mobile") { if (MzansiInnovationHub.of(context)!.theme.screenType == "mobile") {
double mobilePadding = 10; double mobilePadding = 10;
return EdgeInsets.only( return EdgeInsets.only(
left: mobilePadding, left: mobilePadding,
@@ -216,7 +216,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
// Icon( // Icon(
// MihIcons.mihLogo, // MihIcons.mihLogo,
// size: width / 2, // size: width / 2,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// const SizedBox(height: 10), // const SizedBox(height: 10),
// Text( // Text(
@@ -226,7 +226,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
// style: TextStyle( // style: TextStyle(
// fontSize: 30, // fontSize: 30,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// ), // ),
// const SizedBox(height: 20), // const SizedBox(height: 20),
@@ -238,8 +238,8 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
prefixIcon: Icons.search, prefixIcon: Icons.search,
prefixAltIcon: MihIcons.mzansiAi, prefixAltIcon: MihIcons.mzansiAi,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
'/mzansi-ai', '/mzansi-ai',
@@ -289,7 +289,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
Icon( Icon(
MihIcons.mzansiAi, MihIcons.mzansiAi,
size: 165, size: 165,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -301,7 +301,7 @@ class _MihBusinessHomeState extends State<MihBusinessHome>
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),

View File

@@ -171,11 +171,11 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
appName: "Test", appName: "Test",
appIcon: Icon( appIcon: Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
iconSize: packageSize, iconSize: packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
) )
}); });
} }
@@ -183,7 +183,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
} }
EdgeInsets getPadding(double width, double height) { EdgeInsets getPadding(double width, double height) {
if (MzanziInnovationHub.of(context)!.theme.screenType == "mobile") { if (MzansiInnovationHub.of(context)!.theme.screenType == "mobile") {
double mobilePadding = 10; double mobilePadding = 10;
return EdgeInsets.only( return EdgeInsets.only(
left: mobilePadding, left: mobilePadding,
@@ -261,7 +261,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
// Icon( // Icon(
// MihIcons.mihLogo, // MihIcons.mihLogo,
// size: 200, // size: 200,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// const SizedBox(height: 10), // const SizedBox(height: 10),
// Text( // Text(
@@ -271,7 +271,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
// style: TextStyle( // style: TextStyle(
// fontSize: 30, // fontSize: 30,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
// ), // ),
// const SizedBox(height: 20), // const SizedBox(height: 20),
@@ -283,8 +283,8 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
prefixIcon: Icons.search, prefixIcon: Icons.search,
prefixAltIcon: MihIcons.mzansiAi, prefixAltIcon: MihIcons.mzansiAi,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
'/mzansi-ai', '/mzansi-ai',
@@ -335,7 +335,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
Icon( Icon(
MihIcons.mzansiAi, MihIcons.mzansiAi,
size: 165, size: 165,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -347,7 +347,7 @@ class _MihPersonalHomeState extends State<MihPersonalHome>
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),

View File

@@ -35,12 +35,12 @@ class _MzansiAiTileState extends State<MzansiAiTile> {
appName: "Mzansi AI", appName: "Mzansi AI",
appIcon: Icon( appIcon: Icon(
MihIcons.mzansiAi, MihIcons.mzansiAi,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -187,21 +187,21 @@ class _AiChatState extends State<AiChat> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.volume_up, Icons.volume_up,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
label: "Read Aloud", label: "Read Aloud",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
_speakText(snapshot.requireData); _speakText(snapshot.requireData);
}, },
@@ -222,7 +222,7 @@ class _AiChatState extends State<AiChat> {
snapshot.requireData, snapshot.requireData,
textAlign: TextAlign.left, textAlign: TextAlign.left,
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: _chatFrontSize, fontSize: _chatFrontSize,
@@ -305,29 +305,29 @@ class _AiChatState extends State<AiChat> {
ChatTheme getChatTheme() { ChatTheme getChatTheme() {
return DarkChatTheme( return DarkChatTheme(
backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), backgroundColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
inputBackgroundColor: inputBackgroundColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputTextColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), inputTextColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
inputTextCursorColor: inputTextCursorColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.successColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.successColor(),
errorColor: MzanziInnovationHub.of(context)!.theme.errorColor(), errorColor: MzansiInnovationHub.of(context)!.theme.errorColor(),
sentMessageBodyTextStyle: TextStyle( sentMessageBodyTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: _chatFrontSize, fontSize: _chatFrontSize,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontFamily: 'Segoe UI', fontFamily: 'Segoe UI',
), ),
receivedMessageBodyTextStyle: TextStyle( receivedMessageBodyTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: _chatFrontSize, fontSize: _chatFrontSize,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontFamily: 'Segoe UI', fontFamily: 'Segoe UI',
), ),
emptyChatPlaceholderTextStyle: TextStyle( emptyChatPlaceholderTextStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.messageTextColor(), color: MzansiInnovationHub.of(context)!.theme.messageTextColor(),
fontSize: _chatFrontSize, fontSize: _chatFrontSize,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontFamily: 'Segoe UI', fontFamily: 'Segoe UI',
@@ -350,10 +350,10 @@ class _AiChatState extends State<AiChat> {
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
decoration: BoxDecoration( decoration: BoxDecoration(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
borderRadius: BorderRadius.circular(25.0), borderRadius: BorderRadius.circular(25.0),
border: Border.all( border: Border.all(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 3.0), width: 3.0),
@@ -370,7 +370,7 @@ class _AiChatState extends State<AiChat> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -385,11 +385,11 @@ class _AiChatState extends State<AiChat> {
child: MihRadioOptions( child: MihRadioOptions(
controller: _modelController, controller: _modelController,
hintText: "AI Model", hintText: "AI Model",
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
requiredText: true, requiredText: true,
@@ -445,11 +445,11 @@ class _AiChatState extends State<AiChat> {
style: ButtonStyle( style: ButtonStyle(
backgroundColor: backgroundColor:
WidgetStateProperty.all<Color>( WidgetStateProperty.all<Color>(
MzanziInnovationHub.of(context)! MzansiInnovationHub.of(context)!
.theme .theme
.successColor()), .successColor()),
), ),
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
iconSize: 25, iconSize: 25,
@@ -474,10 +474,10 @@ class _AiChatState extends State<AiChat> {
width: 300, width: 300,
child: MihNumericStepper( child: MihNumericStepper(
controller: _fontSizeController, controller: _fontSizeController,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
hintText: "Font Size", hintText: "Font Size",
@@ -696,10 +696,10 @@ class _AiChatState extends State<AiChat> {
child: IconButton.filled( child: IconButton.filled(
style: ButtonStyle( style: ButtonStyle(
backgroundColor: WidgetStateProperty.all<Color>( backgroundColor: WidgetStateProperty.all<Color>(
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
), ),
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
iconSize: 20, iconSize: 20,
onPressed: () { onPressed: () {
if (_showModelOptions.value == true) { if (_showModelOptions.value == true) {
@@ -747,17 +747,17 @@ class _AiChatState extends State<AiChat> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.refresh, Icons.refresh,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "New Chat", label: "New Chat",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
_resetChat(); _resetChat();
}, },
@@ -765,17 +765,17 @@ class _AiChatState extends State<AiChat> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.settings, Icons.settings,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Settings", label: "Settings",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
if (_showModelOptions.value == true) { if (_showModelOptions.value == true) {
setState(() { setState(() {

View File

@@ -27,12 +27,12 @@ class _BuildBusinessSearchResultsListState
itemCount: widget.businessList.length, itemCount: widget.businessList.length,
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemBuilder: (context, index) { itemBuilder: (context, index) {
return Material( return Material(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -40,7 +40,7 @@ class _BuildBusinessSearchResultsListState
arguments: widget.businessList[index], arguments: widget.businessList[index],
); );
}, },
splashColor: MzanziInnovationHub.of(context)! splashColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor() .secondaryColor()
.withOpacity(0.2), .withOpacity(0.2),

View File

@@ -25,12 +25,12 @@ class _BuildUserSearchResultsListState
itemCount: widget.userList.length, itemCount: widget.userList.length,
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemBuilder: (context, index) { itemBuilder: (context, index) {
return Material( return Material(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: InkWell( child: InkWell(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -38,7 +38,7 @@ class _BuildUserSearchResultsListState
arguments: widget.userList[index], arguments: widget.userList[index],
); );
}, },
splashColor: MzanziInnovationHub.of(context)! splashColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor() .secondaryColor()
.withOpacity(0.2), .withOpacity(0.2),

View File

@@ -27,12 +27,12 @@ class _MzansiDirectoryTileState extends State<MzansiDirectoryTile> {
appName: "Mzansi Directory", appName: "Mzansi Directory",
appIcon: Icon( appIcon: Icon(
MihIcons.mzansiDirectory, MihIcons.mzansiDirectory,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -36,8 +36,8 @@ class _MihContactsState extends State<MihContacts> {
hintText: "Search Contacts", hintText: "Search Contacts",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () {}, onPrefixIconTap: () {},
searchFocusNode: searchFocusNode, searchFocusNode: searchFocusNode,
), ),

View File

@@ -37,8 +37,8 @@ class _MihFavouriteBusinessesState extends State<MihFavouriteBusinesses> {
hintText: "Search Businesses", hintText: "Search Businesses",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () {}, onPrefixIconTap: () {},
searchFocusNode: searchFocusNode, searchFocusNode: searchFocusNode,
), ),

View File

@@ -85,12 +85,12 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
Icons.display_settings, Icons.display_settings,
size: 35, size: 35,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
)) ))
], ],
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
if (userSearch) { if (userSearch) {
setState(() { setState(() {
@@ -169,7 +169,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
MihIcons.personalProfile, MihIcons.personalProfile,
size: 165, size: 165,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
@@ -180,7 +180,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -196,7 +196,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: 165, size: 165,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
@@ -207,7 +207,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -218,7 +218,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
"Error pulling Patients Data\n/users/search/${mzansiSearchController.text}", "Error pulling Patients Data\n/users/search/${mzansiSearchController.text}",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.errorColor()), color: MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );
@@ -260,7 +260,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: 165, size: 165,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
@@ -271,7 +271,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -286,7 +286,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
MihIcons.businessProfile, MihIcons.businessProfile,
size: 165, size: 165,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
Text( Text(
@@ -297,7 +297,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -308,7 +308,7 @@ class _MihSearchMzansiState extends State<MihSearchMzansi> {
"Error pulling Patients Data\n/users/search/${mzansiSearchController.text}", "Error pulling Patients Data\n/users/search/${mzansiSearchController.text}",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.errorColor()), color: MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );

View File

@@ -161,17 +161,17 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Delete Employee", label: "Delete Employee",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
showDeleteWarning(index); showDeleteWarning(index);
}, },
@@ -182,7 +182,7 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -192,9 +192,9 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -204,9 +204,9 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -258,12 +258,12 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -309,7 +309,7 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.employees.length, itemCount: widget.employees.length,
@@ -327,7 +327,7 @@ class _BuildEmployeeListState extends State<BuildEmployeeList> {
subtitle: Text( subtitle: Text(
"${widget.employees[index].username}\n${widget.employees[index].email}\nAccess: ${widget.employees[index].access}", "${widget.employees[index].username}\n${widget.employees[index].email}\nAccess: ${widget.employees[index].access}",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () { onTap: () {

View File

@@ -133,7 +133,7 @@ class _BuildUserListState extends State<BuildUserList> {
windowTitle: "Add Employee", windowTitle: "Add Employee",
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -142,10 +142,10 @@ class _BuildUserListState extends State<BuildUserList> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: usernameController, controller: usernameController,
@@ -156,10 +156,10 @@ class _BuildUserListState extends State<BuildUserList> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -213,14 +213,14 @@ class _BuildUserListState extends State<BuildUserList> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -256,7 +256,7 @@ class _BuildUserListState extends State<BuildUserList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.users.length, itemCount: widget.users.length,
@@ -271,7 +271,7 @@ class _BuildUserListState extends State<BuildUserList> {
subtitle: Text( subtitle: Text(
"Email: ${hideEmail(widget.users[index].email)}", "Email: ${hideEmail(widget.users[index].email)}",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () { onTap: () {

View File

@@ -35,7 +35,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Making Call", alertTitle: "Error Making Call",
alertBody: Column( alertBody: Column(
@@ -43,7 +43,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"We couldn't open your phone app to call ${widget.cellNumber}. To fix this, make sure you have a phone application installed and it's set as your default dialer.", "We couldn't open your phone app to call ${widget.cellNumber}. To fix this, make sure you have a phone application installed and it's set as your default dialer.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -51,7 +51,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -85,7 +85,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Creating Email", alertTitle: "Error Creating Email",
alertBody: Column( alertBody: Column(
@@ -93,7 +93,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"We couldn't launch your email app to send a message to ${widget.email}. To fix this, please confirm that you have an email application installed and that it's set as your default.", "We couldn't launch your email app to send a message to ${widget.email}. To fix this, please confirm that you have an email application installed and that it's set as your default.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -101,7 +101,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -126,7 +126,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Creating Maps", alertTitle: "Error Creating Maps",
alertBody: Column( alertBody: Column(
@@ -134,7 +134,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"There was an issue opening maps for ${widget.businessName}. This usually happens if you don't have a maps app installed or it's not set as your default. Please install one to proceed.", "There was an issue opening maps for ${widget.businessName}. This usually happens if you don't have a maps app installed or it's not set as your default. Please install one to proceed.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -143,7 +143,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
], ],
), ),
alertColour: alertColour:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -155,7 +155,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Creating Maps", alertTitle: "Error Creating Maps",
alertBody: Column( alertBody: Column(
@@ -163,7 +163,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"There was an issue opening maps for ${widget.businessName}. This usually happens if you don't have a maps app installed or it's not set as your default. Please install one to proceed.", "There was an issue opening maps for ${widget.businessName}. This usually happens if you don't have a maps app installed or it's not set as your default. Please install one to proceed.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -171,7 +171,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -195,7 +195,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Opening Website", alertTitle: "Error Opening Website",
alertBody: Column( alertBody: Column(
@@ -203,7 +203,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"We couldn't open the link to $newUrl. To view this website, please ensure you have a web browser installed and set as your default.", "We couldn't open the link to $newUrl. To view this website, please ensure you have a web browser installed and set as your default.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -212,7 +212,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
], ],
), ),
alertColour: alertColour:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -224,7 +224,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Opening Website", alertTitle: "Error Opening Website",
alertBody: Column( alertBody: Column(
@@ -232,7 +232,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Text( Text(
"We couldn't open the link to $newUrl. To view this website, please ensure you have a web browser installed and set as your default.", "We couldn't open the link to $newUrl. To view this website, please ensure you have a web browser installed and set as your default.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
fontSize: 15, fontSize: 15,
@@ -240,7 +240,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
), ),
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}); });
} }
@@ -254,10 +254,10 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Function()? ontap, Function()? ontap,
) { ) {
return Material( return Material(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
child: InkWell( child: InkWell(
onTap: ontap, onTap: ontap,
splashColor: MzanziInnovationHub.of(context)! splashColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor() .primaryColor()
.withOpacity(0.2), .withOpacity(0.2),
@@ -278,7 +278,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
child: Icon( child: Icon(
icon, icon,
size: 35, size: 35,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
SizedBox(width: 20), SizedBox(width: 20),
@@ -293,7 +293,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
height: 1.0, height: 1.0,
@@ -304,7 +304,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 12,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
), ),
@@ -322,7 +322,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Material( return Material(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor() .secondaryColor()
.withValues(alpha: 0.6), .withValues(alpha: 0.6),
@@ -331,7 +331,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
shadowColor: Colors.black, shadowColor: Colors.black,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
), ),
child: Column( child: Column(
@@ -348,7 +348,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
}, },
), ),
Divider( Divider(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
_buildContactInfo( _buildContactInfo(
"Email", "Email",
@@ -365,7 +365,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
}, },
), ),
Divider( Divider(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
_buildContactInfo( _buildContactInfo(
"Location", "Location",
@@ -385,7 +385,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
Visibility( Visibility(
visible: widget.website != null && widget.website! != "", visible: widget.website != null && widget.website! != "",
child: Divider( child: Divider(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
), ),
Visibility( Visibility(
@@ -403,7 +403,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
// Padding( // Padding(
// padding: const EdgeInsets.symmetric(horizontal: 10.0), // padding: const EdgeInsets.symmetric(horizontal: 10.0),
// child: Divider( // child: Divider(
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// ), // ),
// _buildContactInfo( // _buildContactInfo(
@@ -419,7 +419,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
// Padding( // Padding(
// padding: const EdgeInsets.symmetric(horizontal: 10.0), // padding: const EdgeInsets.symmetric(horizontal: 10.0),
// child: Divider( // child: Divider(
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// ), // ),
// _buildContactInfo( // _buildContactInfo(
@@ -436,7 +436,7 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
// Padding( // Padding(
// padding: const EdgeInsets.symmetric(horizontal: 10.0), // padding: const EdgeInsets.symmetric(horizontal: 10.0),
// child: Divider( // child: Divider(
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(), // color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// ), // ),
], ],

View File

@@ -31,12 +31,12 @@ class _MzansiBusinessProfileTileState extends State<MzansiBusinessProfileTile> {
appName: "Business Profile", appName: "Business Profile",
appIcon: Icon( appIcon: Icon(
MihIcons.businessProfile, MihIcons.businessProfile,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -32,11 +32,11 @@ class _MzansiSetupBusinessProfileTileState
appName: "Setup Business", appName: "Setup Business",
appIcon: Icon( appIcon: Icon(
MihIcons.profileSetup, MihIcons.profileSetup,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -103,7 +103,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
return MihPackageAlert( return MihPackageAlert(
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Updating Business Details", alertTitle: "Error Updating Business Details",
alertBody: Column( alertBody: Column(
@@ -111,7 +111,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
Text( Text(
"An error occurred while updating the business details. Please check internet connection and try again.", "An error occurred while updating the business details. Please check internet connection and try again.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -119,7 +119,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
], ],
), ),
alertColour: alertColour:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}, },
); );
@@ -207,7 +207,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
}, },
windowBody: MihSingleChildScroll( windowBody: MihSingleChildScroll(
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop" "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: EdgeInsets.symmetric(horizontal: width * 0), : EdgeInsets.symmetric(horizontal: width * 0),
@@ -223,10 +223,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
editable: true, editable: true,
fileNameController: fileNameController, fileNameController: fileNameController,
userSelectedfile: imageFile, userSelectedfile: imageFile,
frameColor: MzanziInnovationHub.of(context)! frameColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
backgroundColor: MzanziInnovationHub.of(context)! backgroundColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
onChange: (selectedfile) { onChange: (selectedfile) {
@@ -239,10 +239,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
Visibility( Visibility(
visible: false, visible: false,
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: fileNameController, controller: fileNameController,
@@ -254,10 +254,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: nameController, controller: nameController,
@@ -270,10 +270,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: typeController, controller: typeController,
@@ -297,10 +297,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
// ), // ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -314,10 +314,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: contactController, controller: contactController,
@@ -330,10 +330,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: websiteController, controller: websiteController,
@@ -348,10 +348,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
height: 250, height: 250,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: missionVisionController, controller: missionVisionController,
@@ -395,10 +395,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: regController, controller: regController,
@@ -411,10 +411,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: practiceNoController, controller: practiceNoController,
@@ -428,10 +428,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
), ),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: vatNoController, controller: vatNoController,
@@ -448,10 +448,10 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
children: [ children: [
Flexible( Flexible(
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: locationController, controller: locationController,
@@ -485,14 +485,14 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 100, width: 100,
child: Text( child: Text(
"Set", "Set",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -513,14 +513,14 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -541,9 +541,9 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
Color getMissionVisionLimitColor(int limit) { Color getMissionVisionLimitColor(int limit) {
if (_counter.value <= limit) { if (_counter.value <= limit) {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} else { } else {
return MzanziInnovationHub.of(context)!.theme.errorColor(); return MzansiInnovationHub.of(context)!.theme.errorColor();
} }
} }
@@ -611,7 +611,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
MihSingleChildScroll( MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -624,9 +624,9 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
fileNameController: fileNameController, fileNameController: fileNameController,
userSelectedfile: imageFile, userSelectedfile: imageFile,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (selectedfile) { onChange: (selectedfile) {
setState(() { setState(() {
imageFile = selectedfile; imageFile = selectedfile;
@@ -640,7 +640,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 35,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -652,7 +652,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
// style: TextStyle( // style: TextStyle(
// fontSize: 15, // fontSize: 15,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)! // color: MzansiInnovationHub.of(context)!
// .theme // .theme
// .secondaryColor(), // .secondaryColor(),
// ), // ),
@@ -669,7 +669,7 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -696,12 +696,12 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
editBizProfileWindow(width); editBizProfileWindow(width);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Edit Profile", "Edit Profile",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -723,17 +723,17 @@ class _MihBusinessDetailsState extends State<MihBusinessDetails> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.edit, Icons.edit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Edit Profile", label: "Edit Profile",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
editBizProfileWindow(width); editBizProfileWindow(width);
}, },

View File

@@ -53,7 +53,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
MihSingleChildScroll( MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -71,10 +71,10 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
editable: false, editable: false,
fileNameController: TextEditingController(), fileNameController: TextEditingController(),
userSelectedfile: file, userSelectedfile: file,
frameColor: MzanziInnovationHub.of(context)! frameColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
backgroundColor: MzanziInnovationHub.of(context)! backgroundColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
onChange: () {}, onChange: () {},
@@ -83,7 +83,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
return Icon( return Icon(
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: profilePictureWidth, size: profilePictureWidth,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
); );
@@ -92,7 +92,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
return Icon( return Icon(
MihIcons.mihRing, MihIcons.mihRing,
size: profilePictureWidth, size: profilePictureWidth,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
); );
@@ -106,9 +106,9 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
// fileNameController: fileNameController, // fileNameController: fileNameController,
// userSelectedfile: imageFile, // userSelectedfile: imageFile,
// frameColor: // frameColor:
// MzanziInnovationHub.of(context)!.theme.secondaryColor(), // MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// backgroundColor: // backgroundColor:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// onChange: (selectedfile) { // onChange: (selectedfile) {
// setState(() { // setState(() {
// imageFile = selectedfile; // imageFile = selectedfile;
@@ -122,7 +122,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 35,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -134,7 +134,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
// style: TextStyle( // style: TextStyle(
// fontSize: 15, // fontSize: 15,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// color: MzanziInnovationHub.of(context)! // color: MzansiInnovationHub.of(context)!
// .theme // .theme
// .secondaryColor(), // .secondaryColor(),
// ), // ),
@@ -151,7 +151,7 @@ class _MihBusinessDetailsViewState extends State<MihBusinessDetailsView> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),

View File

@@ -66,7 +66,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
"Enter Username or Email to search", "Enter Username or Email to search",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), color: MzansiInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );
@@ -105,8 +105,8 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
controller: searchController, controller: searchController,
hintText: "Search Users", hintText: "Search Users",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), fillColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
submitUserForm(); submitUserForm();
}, },
@@ -144,7 +144,7 @@ class _MihBusinessUserSearchState extends State<MihBusinessUserSearch> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );

View File

@@ -60,7 +60,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
"", "",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), color: MzansiInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );
@@ -106,7 +106,7 @@ class _MihMyBusinessTeamState extends State<MihMyBusinessTeam> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );

View File

@@ -128,7 +128,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
return MihPackageAlert( return MihPackageAlert(
alertIcon: Icon( alertIcon: Icon(
Icons.warning_rounded, Icons.warning_rounded,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Error Updating Business User Details", alertTitle: "Error Updating Business User Details",
alertBody: Column( alertBody: Column(
@@ -136,7 +136,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
Text( Text(
"An error occurred while updating the business User details. Please check internet connection and try again.", "An error occurred while updating the business User details. Please check internet connection and try again.",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -144,7 +144,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
], ],
), ),
alertColour: alertColour:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}, },
); );
@@ -215,7 +215,7 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
Widget getBody(double width) { Widget getBody(double width) {
return MihSingleChildScroll( return MihSingleChildScroll(
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == "desktop" padding: MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -231,9 +231,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
fileNameController: fileNameController, fileNameController: fileNameController,
userSelectedfile: userPicFile, userSelectedfile: userPicFile,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (_) {}, onChange: (_) {},
), ),
), ),
@@ -241,9 +241,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
visible: false, visible: false,
child: MihTextFormField( child: MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fileNameController, controller: fileNameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -266,9 +266,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: titleTextController, controller: titleTextController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -280,9 +280,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -295,9 +295,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -310,9 +310,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: accessController, controller: accessController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -354,9 +354,9 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
visible: false, visible: false,
child: MihTextFormField( child: MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fileNameController, controller: fileNameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -375,12 +375,12 @@ class _MihMyBusinessUserState extends State<MihMyBusinessUser> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -243,9 +243,9 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
Color getMissionVisionLimitColor(int limit) { Color getMissionVisionLimitColor(int limit) {
if (_counter.value <= limit) { if (_counter.value <= limit) {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} else { } else {
return MzanziInnovationHub.of(context)!.theme.errorColor(); return MzansiInnovationHub.of(context)!.theme.errorColor();
} }
} }
@@ -269,7 +269,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
child: SingleChildScrollView( child: SingleChildScrollView(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -282,7 +282,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
), ),
Divider( Divider(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor()), .secondaryColor()),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
@@ -290,10 +290,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: nameController, controller: nameController,
@@ -306,10 +306,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: typeController, controller: typeController,
@@ -333,10 +333,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
// ), // ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: emailController, controller: emailController,
@@ -349,10 +349,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: contactController, controller: contactController,
@@ -365,10 +365,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: websiteController, controller: websiteController,
@@ -383,10 +383,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
height: 250, height: 250,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: missionVisionController, controller: missionVisionController,
@@ -431,10 +431,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: regController, controller: regController,
@@ -447,10 +447,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: practiceNoController, controller: practiceNoController,
@@ -464,10 +464,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: vatNoController, controller: vatNoController,
@@ -484,10 +484,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
children: [ children: [
Flexible( Flexible(
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: locationController, controller: locationController,
@@ -519,14 +519,14 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}); });
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 100, width: 100,
child: Text( child: Text(
"Set", "Set",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -548,7 +548,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
), ),
Divider( Divider(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor()), .secondaryColor()),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
@@ -565,10 +565,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: fnameController, controller: fnameController,
@@ -581,10 +581,10 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: lnameController, controller: lnameController,
@@ -618,14 +618,14 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
.formNotFilledCompletely(context); .formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -24,7 +24,7 @@ class MzansiProfileTile extends StatefulWidget {
class _MzansiProfileTileState extends State<MzansiProfileTile> { class _MzansiProfileTileState extends State<MzansiProfileTile> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
// ImageProvider logo = MzanziInnovationHub.of(context)!.theme.logoImage(); // ImageProvider logo = MzansiInnovationHub.of(context)!.theme.logoImage();
return MihPackageTile( return MihPackageTile(
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
@@ -38,12 +38,12 @@ class _MzansiProfileTileState extends State<MzansiProfileTile> {
appName: "Mzansi Profile", appName: "Mzansi Profile",
appIcon: Icon( appIcon: Icon(
MihIcons.mihLogo, MihIcons.mihLogo,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -37,12 +37,12 @@ class _MzansiSetupProfileTileState extends State<MzansiSetupProfileTile> {
appName: "Setup Profile", appName: "Setup Profile",
appIcon: Icon( appIcon: Icon(
MihIcons.profileSetup, MihIcons.profileSetup,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -54,7 +54,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: "Too Slow, That Username is Taken", alertTitle: "Too Slow, That Username is Taken",
alertBody: const Text( alertBody: const Text(
@@ -63,7 +63,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
fontSize: 15, fontSize: 15,
), ),
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}, },
); );
@@ -189,9 +189,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
Color getPurposeLimitColor(int limit) { Color getPurposeLimitColor(int limit) {
if (_counter.value <= limit) { if (_counter.value <= limit) {
return MzanziInnovationHub.of(context)!.theme.secondaryColor(); return MzansiInnovationHub.of(context)!.theme.secondaryColor();
} else { } else {
return MzanziInnovationHub.of(context)!.theme.errorColor(); return MzansiInnovationHub.of(context)!.theme.errorColor();
} }
} }
@@ -206,7 +206,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: EdgeInsets.symmetric(horizontal: width * 0), : EdgeInsets.symmetric(horizontal: width * 0),
child: Column( child: Column(
@@ -222,11 +222,11 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
editable: true, editable: true,
fileNameController: proPicController, fileNameController: proPicController,
userSelectedfile: proPic, userSelectedfile: proPic,
frameColor: MzanziInnovationHub.of(context)! frameColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (selectedImage) { onChange: (selectedImage) {
setState(() { setState(() {
proPic = selectedImage; proPic = selectedImage;
@@ -238,11 +238,11 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
Visibility( Visibility(
visible: false, visible: false,
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: proPicController, controller: proPicController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -253,9 +253,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: usernameController, controller: usernameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -267,9 +267,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -281,9 +281,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -296,9 +296,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
MihTextFormField( MihTextFormField(
height: 250, height: 250,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: purposeController, controller: purposeController,
multiLineInput: true, multiLineInput: true,
requiredText: true, requiredText: true,
@@ -343,9 +343,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
hintText: "Activate Business Account", hintText: "Activate Business Account",
initialPostion: businessUser, initialPostion: businessUser,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (value) { onChange: (value) {
setState(() { setState(() {
businessUser = value; businessUser = value;
@@ -364,12 +364,12 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -442,7 +442,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
MihSingleChildScroll( MihSingleChildScroll(
child: Padding( child: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -456,9 +456,9 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
fileNameController: proPicController, fileNameController: proPicController,
userSelectedfile: proPic, userSelectedfile: proPic,
frameColor: frameColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onChange: (selectedImage) { onChange: (selectedImage) {
setState(() { setState(() {
proPic = selectedImage; proPic = selectedImage;
@@ -474,7 +474,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
style: TextStyle( style: TextStyle(
fontSize: 35, fontSize: 35,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -488,7 +488,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -500,7 +500,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -518,7 +518,7 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -533,14 +533,14 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
editProfileWindow(width); editProfileWindow(width);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
widget.arguments.signedInUser.username.isEmpty widget.arguments.signedInUser.username.isEmpty
? "Set Up Profile" ? "Set Up Profile"
: "Edit Profile", : "Edit Profile",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -562,17 +562,17 @@ class _MihPersonalProfileState extends State<MihPersonalProfile> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.edit, Icons.edit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Edit Profile", label: "Edit Profile",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
editProfileWindow(width); editProfileWindow(width);
}, },

View File

@@ -49,7 +49,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
double profilePictureWidth = 150; double profilePictureWidth = 150;
return MihSingleChildScroll( return MihSingleChildScroll(
child: Padding( child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == "desktop" padding: MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.2) ? EdgeInsets.symmetric(horizontal: width * 0.2)
: EdgeInsets.symmetric(horizontal: width * 0.075), : EdgeInsets.symmetric(horizontal: width * 0.075),
child: Column( child: Column(
@@ -67,10 +67,10 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
editable: false, editable: false,
fileNameController: TextEditingController(), fileNameController: TextEditingController(),
userSelectedfile: file, userSelectedfile: file,
frameColor: MzanziInnovationHub.of(context)! frameColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
backgroundColor: MzanziInnovationHub.of(context)! backgroundColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
onChange: () {}, onChange: () {},
@@ -79,7 +79,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
return Icon( return Icon(
MihIcons.iDontKnow, MihIcons.iDontKnow,
size: profilePictureWidth, size: profilePictureWidth,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
); );
@@ -88,7 +88,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
return Icon( return Icon(
MihIcons.mihRing, MihIcons.mihRing,
size: profilePictureWidth, size: profilePictureWidth,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
); );
@@ -100,11 +100,11 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
// editable: false, // editable: false,
// fileNameController: proPicController, // fileNameController: proPicController,
// userSelectedfile: proPic, // userSelectedfile: proPic,
// frameColor: MzanziInnovationHub.of(context)! // frameColor: MzansiInnovationHub.of(context)!
// .theme // .theme
// .secondaryColor(), // .secondaryColor(),
// backgroundColor: // backgroundColor:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// onChange: (selectedImage) { // onChange: (selectedImage) {
// setState(() { // setState(() {
// proPic = selectedImage; // proPic = selectedImage;
@@ -122,7 +122,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
fontSize: 35, fontSize: 35,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -135,7 +135,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -146,7 +146,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -163,7 +163,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
@@ -175,7 +175,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
// // Connect with the user // // Connect with the user
// }, // },
// buttonColor: // buttonColor:
// MzanziInnovationHub.of(context)!.theme.successColor(), // MzansiInnovationHub.of(context)!.theme.successColor(),
// width: 300, // width: 300,
// child: Text( // child: Text(
// widget.user.username.isEmpty // widget.user.username.isEmpty
@@ -183,7 +183,7 @@ class _MihPersonalProfileViewState extends State<MihPersonalProfileView> {
// : "Edit Profile", // : "Edit Profile",
// style: TextStyle( // style: TextStyle(
// color: // color:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// fontSize: 20, // fontSize: 20,
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// ), // ),

View File

@@ -38,7 +38,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
alertIcon: Icon( alertIcon: Icon(
Icons.warning_amber_rounded, Icons.warning_amber_rounded,
size: 100, size: 100,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
alertTitle: alertTitle:
"Are you sure you want to permanently delete your MIH account?", "Are you sure you want to permanently delete your MIH account?",
@@ -49,7 +49,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
"This action will remove all of your data, and it cannot be recovered. We understand this is a big decision, so please take a moment to double-check.\n\nIf you're certain, please confirm below. If you've changed your mind, you can simply close this window.", "This action will remove all of your data, and it cannot be recovered. We understand this is a big decision, so please take a moment to double-check.\n\nIf you're certain, please confirm below. If you've changed your mind, you can simply close this window.",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15, fontSize: 15,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -65,12 +65,12 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
widget.signedInUser.app_id, context); widget.signedInUser.app_id, context);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete", "Delete",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -83,12 +83,12 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
Navigator.pop(context); Navigator.pop(context);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Cancel", "Cancel",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -100,7 +100,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
) )
], ],
), ),
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
); );
}, },
); );
@@ -113,7 +113,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
Center( Center(
child: FaIcon( child: FaIcon(
FontAwesomeIcons.trashCan, FontAwesomeIcons.trashCan,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
size: 150, size: 150,
), ),
), ),
@@ -124,7 +124,7 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
@@ -132,12 +132,12 @@ class _MihPersonalSettingsState extends State<MihPersonalSettings> {
onPressed: () { onPressed: () {
deleteAccountPopUp(context); deleteAccountPopUp(context);
}, },
buttonColor: MzanziInnovationHub.of(context)!.theme.errorColor(), buttonColor: MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Delete Account", "Delete Account",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

View File

@@ -63,7 +63,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: EdgeInsets.symmetric(horizontal: width * 0), : EdgeInsets.symmetric(horizontal: width * 0),
child: Column( child: Column(
@@ -73,9 +73,9 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _nicknameController, controller: _nicknameController,
multiLineInput: false, multiLineInput: false,
requiredText: false, requiredText: false,
@@ -89,10 +89,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
children: [ children: [
Flexible( Flexible(
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: _cardNumberController, controller: _cardNumberController,
@@ -110,14 +110,14 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
onPressed: () { onPressed: () {
openscanner(); openscanner();
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 100, width: 100,
child: Text( child: Text(
"Scan", "Scan",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -147,12 +147,12 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Update", "Update",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -195,10 +195,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
barrierDismissible: false, barrierDismissible: false,
builder: (context) { builder: (context) {
return MihPackageAlert( return MihPackageAlert(
alertColour: MzanziInnovationHub.of(context)!.theme.successColor(), alertColour: MzansiInnovationHub.of(context)!.theme.successColor(),
alertIcon: Icon( alertIcon: Icon(
Icons.favorite, Icons.favorite,
color: MzanziInnovationHub.of(context)!.theme.successColor(), color: MzansiInnovationHub.of(context)!.theme.successColor(),
size: 100, size: 100,
), ),
alertTitle: "Add to Favourites", alertTitle: "Add to Favourites",
@@ -209,7 +209,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox( const SizedBox(
@@ -229,13 +229,13 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -254,10 +254,10 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
barrierDismissible: false, barrierDismissible: false,
builder: (context) { builder: (context) {
return MihPackageAlert( return MihPackageAlert(
alertColour: MzanziInnovationHub.of(context)!.theme.errorColor(), alertColour: MzansiInnovationHub.of(context)!.theme.errorColor(),
alertIcon: Icon( alertIcon: Icon(
Icons.favorite_border, Icons.favorite_border,
color: MzanziInnovationHub.of(context)!.theme.errorColor(), color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 100, size: 100,
), ),
alertTitle: "Remove From Favourites", alertTitle: "Remove From Favourites",
@@ -268,7 +268,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox( const SizedBox(
@@ -288,13 +288,13 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
); );
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 300, width: 300,
child: Text( child: Text(
"Remove", "Remove",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -328,24 +328,24 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
? Icon( ? Icon(
Icons.favorite, Icons.favorite,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
) )
: Icon( : Icon(
Icons.favorite_border, Icons.favorite_border,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: widget.cardList[index].favourite == "" label: widget.cardList[index].favourite == ""
? "Add to Favourite" ? "Add to Favourite"
: "Remove from Favourite", : "Remove from Favourite",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
if (widget.cardList[index].favourite == "") { if (widget.cardList[index].favourite == "") {
addToFavCardWindow(context, index); addToFavCardWindow(context, index);
@@ -357,17 +357,17 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.edit, Icons.edit,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Edit Card Details", label: "Edit Card Details",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
setState(() { setState(() {
_cardNumberController.text = widget.cardList[index].card_number; _cardNumberController.text = widget.cardList[index].card_number;
@@ -379,17 +379,17 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.delete, Icons.delete,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Delete Card", label: "Delete Card",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
deleteCardWindow(context, index); deleteCardWindow(context, index);
}, },
@@ -427,7 +427,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
height: 75, height: 75,
// width: 300, // width: 300,
child: BarcodeWidget( child: BarcodeWidget(
//color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), //color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
barcode: Barcode.code128(), barcode: Barcode.code128(),
backgroundColor: Colors.white, backgroundColor: Colors.white,
data: widget.cardList[index].card_number, data: widget.cardList[index].card_number,
@@ -449,7 +449,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
color: Colors.black, color: Colors.black,
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold fontWeight: FontWeight.bold
//MzanziInnovationHub.of(context)!.theme.secondaryColor(), //MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
], ],
@@ -465,7 +465,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
} }
double getHorizontalPaddingSize(Size screenSize) { double getHorizontalPaddingSize(Size screenSize) {
if (MzanziInnovationHub.of(context)!.theme.screenType == "desktop") { if (MzansiInnovationHub.of(context)!.theme.screenType == "desktop") {
return screenSize.width / 10; return screenSize.width / 10;
} else { } else {
return 20; return 20;
@@ -531,7 +531,7 @@ class _BuildLoyaltyCardListState extends State<BuildLoyaltyCardList> {
// physics: const NeverScrollableScrollPhysics(), // physics: const NeverScrollableScrollPhysics(),
// separatorBuilder: (BuildContext context, int index) { // separatorBuilder: (BuildContext context, int index) {
// return Divider( // return Divider(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ); // );
// }, // },
// itemCount: widget.cardList.length, // itemCount: widget.cardList.length,

View File

@@ -105,7 +105,7 @@ class _MihBarcodeScannerState extends State<MihBarcodeScanner>
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all( border: Border.all(
width: 5, width: 5,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
), ),
@@ -126,13 +126,13 @@ class _MihBarcodeScannerState extends State<MihBarcodeScanner>
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
width: 100, width: 100,
height: 50, height: 50,
child: Text( child: Text(
"Cancel", "Cancel",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -32,12 +32,12 @@ class _MihWalletTileState extends State<MihWalletTile> {
appName: "Mzansi Wallet", appName: "Mzansi Wallet",
appIcon: Icon( appIcon: Icon(
MihIcons.mzansiWallet, MihIcons.mzansiWallet,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -90,18 +90,18 @@ class _MihCardFavouritesState extends State<MihCardFavourites> {
// child: Icon( // child: Icon(
// Icons.add, // Icons.add,
// color: // color:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// ), // ),
// label: "Add Loyalty Card", // label: "Add Loyalty Card",
// labelBackgroundColor: // labelBackgroundColor:
// MzanziInnovationHub.of(context)!.theme.successColor(), // MzansiInnovationHub.of(context)!.theme.successColor(),
// labelStyle: TextStyle( // labelStyle: TextStyle(
// color: // color:
// MzanziInnovationHub.of(context)!.theme.primaryColor(), // MzansiInnovationHub.of(context)!.theme.primaryColor(),
// fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
// ), // ),
// backgroundColor: // backgroundColor:
// MzanziInnovationHub.of(context)!.theme.successColor(), // MzansiInnovationHub.of(context)!.theme.successColor(),
// onTap: () { // onTap: () {
// // addCardWindow(context); // // addCardWindow(context);
// }, // },

View File

@@ -102,7 +102,7 @@ class _MihCardsState extends State<MihCards> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: EdgeInsets.symmetric(horizontal: width * 0), : EdgeInsets.symmetric(horizontal: width * 0),
child: Column( child: Column(
@@ -187,9 +187,9 @@ class _MihCardsState extends State<MihCards> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _nicknameController, controller: _nicknameController,
multiLineInput: false, multiLineInput: false,
requiredText: false, requiredText: false,
@@ -203,10 +203,10 @@ class _MihCardsState extends State<MihCards> {
children: [ children: [
Flexible( Flexible(
child: MihTextFormField( child: MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: cardNumberController, controller: cardNumberController,
@@ -224,14 +224,14 @@ class _MihCardsState extends State<MihCards> {
onPressed: () { onPressed: () {
openscanner(); openscanner();
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 100, width: 100,
child: Text( child: Text(
"Scan", "Scan",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -272,12 +272,12 @@ class _MihCardsState extends State<MihCards> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -341,9 +341,9 @@ class _MihCardsState extends State<MihCards> {
// prefixIcon: Icons.search, // prefixIcon: Icons.search,
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
// print("Search Icon Pressed: ${cardSearchController.text}"); // print("Search Icon Pressed: ${cardSearchController.text}");
}, },
@@ -400,18 +400,18 @@ class _MihCardsState extends State<MihCards> {
child: Icon( child: Icon(
Icons.add, Icons.add,
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Add Loyalty Card", label: "Add Loyalty Card",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
addCardWindow(context, width); addCardWindow(context, width);
}, },

View File

@@ -222,8 +222,8 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
children: [ children: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), inputColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: idController, controller: idController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -236,8 +236,8 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), inputColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -250,8 +250,8 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), inputColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -264,8 +264,8 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), inputColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: accessStatusController, controller: accessStatusController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -287,7 +287,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
Text( Text(
@@ -295,7 +295,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
SizedBox( SizedBox(
@@ -305,7 +305,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
), ),
@@ -316,7 +316,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
), ),
@@ -327,7 +327,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.normal, fontWeight: FontWeight.normal,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
), ),
@@ -336,7 +336,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor(), MzansiInnovationHub.of(context)!.theme.errorColor(),
), ),
), ),
], ],
@@ -369,14 +369,14 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
noAccessWarning(); noAccessWarning();
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"View Profile", "View Profile",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -405,14 +405,14 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
context, context,
); );
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Request Access", "Request Access",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -439,14 +439,14 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
context, context,
); );
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Re-apply", "Re-apply",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -488,7 +488,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
Text( Text(
"$firstLetterFName$fnameStar $firstLetterLName$lnameStar", "$firstLetterFName$fnameStar $firstLetterLName$lnameStar",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox( const SizedBox(
@@ -496,7 +496,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
), ),
Icon( Icon(
Icons.star_border_rounded, Icons.star_border_rounded,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
], ],
); );
@@ -504,7 +504,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
return Text( return Text(
"$firstLetterFName$fnameStar $firstLetterLName$lnameStar", "$firstLetterFName$fnameStar $firstLetterLName$lnameStar",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
); );
} }
@@ -518,7 +518,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
subtitle: Text( subtitle: Text(
"ID No.: ${widget.patients[index].id_no}\nMedical Aid No.: $medAidNoStar", "ID No.: ${widget.patients[index].id_no}\nMedical Aid No.: $medAidNoStar",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () { onTap: () {
@@ -533,7 +533,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
}, },
trailing: Icon( trailing: Icon(
Icons.arrow_forward, Icons.arrow_forward,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
); );
} else { } else {
@@ -542,7 +542,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
subtitle: Text( subtitle: Text(
"ID No.: ${widget.patients[index].id_no}\nMedical Aid No.: $medAidNoStar", "ID No.: ${widget.patients[index].id_no}\nMedical Aid No.: $medAidNoStar",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
onTap: () { onTap: () {
@@ -556,7 +556,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
}, },
trailing: Icon( trailing: Icon(
Icons.add, Icons.add,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
); );
} }
@@ -580,7 +580,7 @@ class _BuildPatientsListState extends State<BuildMihPatientSearchList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.patients.length, itemCount: widget.patients.length,

View File

@@ -99,7 +99,7 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.056) ? EdgeInsets.symmetric(horizontal: width * 0.056)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -109,9 +109,9 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: idController, controller: idController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -124,9 +124,9 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -139,9 +139,9 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -191,12 +191,12 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Book Appointment", "Book Appointment",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -263,16 +263,16 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
children: [ children: [
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: idController, controller: idController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -285,9 +285,9 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: fnameController, controller: fnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -300,9 +300,9 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
const SizedBox(height: 10.0), const SizedBox(height: 10.0),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: lnameController, controller: lnameController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -323,12 +323,12 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
appointmentPopUp(index, width); appointmentPopUp(index, width);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Book Appointment", "Book Appointment",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -348,14 +348,14 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
"business", "business",
)); ));
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
width: 300, width: 300,
child: Text( child: Text(
"View Medical Records", "View Medical Records",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,
@@ -387,7 +387,7 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.successColor())); color: MzansiInnovationHub.of(context)!.theme.successColor()));
} else if (access == "PENDING") { } else if (access == "PENDING") {
firstName = "${widget.patientAccesses[index].fname[0]}********"; firstName = "${widget.patientAccesses[index].fname[0]}********";
lastName = "${widget.patientAccesses[index].lname[0]}********"; lastName = "${widget.patientAccesses[index].lname[0]}********";
@@ -395,21 +395,21 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor())); MzansiInnovationHub.of(context)!.theme.messageTextColor()));
} else { } else {
firstName = "${widget.patientAccesses[index].fname[0]}********"; firstName = "${widget.patientAccesses[index].fname[0]}********";
lastName = "${widget.patientAccesses[index].lname[0]}********"; lastName = "${widget.patientAccesses[index].lname[0]}********";
accessWithColour = TextSpan( accessWithColour = TextSpan(
text: "$access\n", text: "$access\n",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.errorColor())); color: MzansiInnovationHub.of(context)!.theme.errorColor()));
} }
return ListTile( return ListTile(
title: Text( title: Text(
"$firstName $lastName", "$firstName $lastName",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
subtitle: RichText( subtitle: RichText(
@@ -438,7 +438,7 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
}, },
trailing: Icon( trailing: Icon(
Icons.arrow_forward, Icons.arrow_forward,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
); );
} }
@@ -461,7 +461,7 @@ class _BuildPatientsListState extends State<BuildMyPatientListList> {
physics: const NeverScrollableScrollPhysics(), physics: const NeverScrollableScrollPhysics(),
separatorBuilder: (BuildContext context, index) { separatorBuilder: (BuildContext context, index) {
return Divider( return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
); );
}, },
itemCount: widget.patientAccesses.length, itemCount: widget.patientAccesses.length,

View File

@@ -30,12 +30,12 @@ class _PatManagerTileState extends State<PatManagerTile> {
appName: "Patient Manager", appName: "Patient Manager",
appIcon: Icon( appIcon: Icon(
MihIcons.patientManager, MihIcons.patientManager,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// size: widget.packageSize, // size: widget.packageSize,
), ),
iconSize: widget.packageSize, iconSize: widget.packageSize,
primaryColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), primaryColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), secondaryColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
); );
} }
} }

View File

@@ -48,8 +48,8 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
controller: _mihPatientSearchController, controller: _mihPatientSearchController,
hintText: "Search Patient ID/ Aid No.", hintText: "Search Patient ID/ Aid No.",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), fillColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
submitPatientSearch(); submitPatientSearch();
}, },
@@ -91,7 +91,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );
@@ -133,7 +133,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor()), MzansiInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
), ),
@@ -147,7 +147,7 @@ class _MihPatientSearchState extends State<MihPatientSearch> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.messageTextColor()), MzansiInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
), ),

View File

@@ -49,8 +49,8 @@ class _MyPatientListState extends State<MyPatientList> {
controller: _myPatientSearchController, controller: _myPatientSearchController,
hintText: "Search Patient ID", hintText: "Search Patient ID",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: MzanziInnovationHub.of(context)!.theme.secondaryColor(), fillColor: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: MzanziInnovationHub.of(context)!.theme.primaryColor(), hintColor: MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
setState(() { setState(() {
_myPatientIdSearchString = _myPatientSearchController.text; _myPatientIdSearchString = _myPatientSearchController.text;
@@ -94,7 +94,7 @@ class _MyPatientListState extends State<MyPatientList> {
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: color:
MzanziInnovationHub.of(context)!.theme.errorColor()), MzansiInnovationHub.of(context)!.theme.errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
); );
@@ -121,7 +121,7 @@ class _MyPatientListState extends State<MyPatientList> {
"No Patients matching search", "No Patients matching search",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor()), color: MzansiInnovationHub.of(context)!.theme.messageTextColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
), ),

View File

@@ -80,7 +80,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
}); });
}), }),
// Divider( // Divider(
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), // color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
// ), // ),
Row( Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
@@ -104,7 +104,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
"Error pulling appointments", "Error pulling appointments",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.errorColor()), .errorColor()),
textAlign: TextAlign.center, textAlign: TextAlign.center,
@@ -127,17 +127,17 @@ class _WaitingRoomState extends State<WaitingRoom> {
SpeedDialChild( SpeedDialChild(
child: Icon( child: Icon(
Icons.add, Icons.add,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
), ),
label: "Add Appointment", label: "Add Appointment",
labelBackgroundColor: labelBackgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
labelStyle: TextStyle( labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
backgroundColor: backgroundColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
onTap: () { onTap: () {
// addAppointmentWindow(); // addAppointmentWindow();
appointmentTypeSelection(width); appointmentTypeSelection(width);
@@ -177,7 +177,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
"No Appointments for $selectedDay", "No Appointments for $selectedDay",
style: TextStyle( style: TextStyle(
fontSize: 25, fontSize: 25,
color: MzanziInnovationHub.of(context)!.theme.messageTextColor(), color: MzansiInnovationHub.of(context)!.theme.messageTextColor(),
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
softWrap: true, softWrap: true,
@@ -211,7 +211,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
question, question,
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor()), .secondaryColor()),
textAlign: TextAlign.left, textAlign: TextAlign.left,
@@ -223,13 +223,13 @@ class _WaitingRoomState extends State<WaitingRoom> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Existing Patient", "Existing Patient",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -242,13 +242,13 @@ class _WaitingRoomState extends State<WaitingRoom> {
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Existing MIH User", "Existing MIH User",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -261,13 +261,13 @@ class _WaitingRoomState extends State<WaitingRoom> {
addAppointmentWindow(width); addAppointmentWindow(width);
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Skeleton Appointment", "Skeleton Appointment",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
@@ -298,7 +298,7 @@ class _WaitingRoomState extends State<WaitingRoom> {
}, },
windowBody: Padding( windowBody: Padding(
padding: padding:
MzanziInnovationHub.of(context)!.theme.screenType == "desktop" MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -307,11 +307,11 @@ class _WaitingRoomState extends State<WaitingRoom> {
formKey: _formKey, formKey: _formKey,
formFields: [ formFields: [
MihTextFormField( MihTextFormField(
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _appointmentTitleController, controller: _appointmentTitleController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -341,11 +341,11 @@ class _WaitingRoomState extends State<WaitingRoom> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
height: 250, height: 250,
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _appointmentDescriptionIDController, controller: _appointmentDescriptionIDController,
multiLineInput: true, multiLineInput: true,
requiredText: true, requiredText: true,
@@ -364,14 +364,14 @@ class _WaitingRoomState extends State<WaitingRoom> {
MihAlertServices().formNotFilledCompletely(context); MihAlertServices().formNotFilledCompletely(context);
} }
}, },
buttonColor: MzanziInnovationHub.of(context)! buttonColor: MzansiInnovationHub.of(context)!
.theme .theme
.successColor(), .successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Add", "Add",
style: TextStyle( style: TextStyle(
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
fontSize: 20, fontSize: 20,

View File

@@ -90,7 +90,7 @@ class _AddOrViewPatientState extends State<AddOrViewPatient> {
loading = Container( loading = Container(
width: width, width: width,
height: height, height: height,
color: MzanziInnovationHub.of(context)!.theme.primaryColor(), color: MzansiInnovationHub.of(context)!.theme.primaryColor(),
child: const Mihloadingcircle(), child: const Mihloadingcircle(),
); );

View File

@@ -83,7 +83,7 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
Widget getWindowBody(double width) { Widget getWindowBody(double width) {
return Padding( return Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType == "desktop" padding: MzansiInnovationHub.of(context)!.theme.screenType == "desktop"
? EdgeInsets.symmetric(horizontal: width * 0.05) ? EdgeInsets.symmetric(horizontal: width * 0.05)
: const EdgeInsets.symmetric(horizontal: 0), : const EdgeInsets.symmetric(horizontal: 0),
child: Column( child: Column(
@@ -95,9 +95,9 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
controller: _docTypeController, controller: _docTypeController,
hintText: "Document Type", hintText: "Document Type",
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
requiredText: true, requiredText: true,
radioOptions: const ["Claim", "Statement"], radioOptions: const ["Claim", "Statement"],
), ),
@@ -110,13 +110,13 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
Divider( Divider(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor()), MzansiInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10), const SizedBox(height: 10),
MihDateField( MihDateField(
controller: _serviceDateController, controller: _serviceDateController,
@@ -131,9 +131,9 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
controller: _serviceDescController, controller: _serviceDescController,
hintText: "Serviced Description", hintText: "Serviced Description",
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
secondaryFillColor: secondaryFillColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
requiredText: true, requiredText: true,
radioOptions: const [ radioOptions: const [
"Consultation", "Consultation",
@@ -155,10 +155,10 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
key: const ValueKey('consultation_type_dropdown'), key: const ValueKey('consultation_type_dropdown'),
controller: _serviceDescOptionsController, controller: _serviceDescOptionsController,
hintText: "Consultation Type", hintText: "Consultation Type",
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
secondaryFillColor: MzanziInnovationHub.of(context)! secondaryFillColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
requiredText: true, requiredText: true,
@@ -180,10 +180,10 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
MihTextFormField( MihTextFormField(
key: const ValueKey( key: const ValueKey(
'procedure_name_field'), // Added key 'procedure_name_field'), // Added key
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: _prcedureNameController, controller: _prcedureNameController,
@@ -198,10 +198,10 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
MihTextFormField( MihTextFormField(
key: const ValueKey( key: const ValueKey(
'procedure_additional_info_field'), // Added key 'procedure_additional_info_field'), // Added key
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: _proceedureAdditionalInfoController, controller: _proceedureAdditionalInfoController,
@@ -223,10 +223,10 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
MihTextFormField( MihTextFormField(
key: const ValueKey( key: const ValueKey(
'other_service_description_field'), // Added key 'other_service_description_field'), // Added key
fillColor: MzanziInnovationHub.of(context)! fillColor: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
inputColor: MzanziInnovationHub.of(context)! inputColor: MzansiInnovationHub.of(context)!
.theme .theme
.primaryColor(), .primaryColor(),
controller: _serviceDescOptionsController, controller: _serviceDescOptionsController,
@@ -256,7 +256,7 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
style: TextStyle( style: TextStyle(
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)! color: MzansiInnovationHub.of(context)!
.theme .theme
.secondaryColor(), .secondaryColor(),
)), )),
@@ -267,9 +267,9 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
hintText: "ICD-10 Search", hintText: "ICD-10 Search",
prefixIcon: Icons.search, prefixIcon: Icons.search,
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
hintColor: hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () { onPrefixIconTap: () {
MIHIcd10CodeApis.getIcd10Codes( MIHIcd10CodeApis.getIcd10Codes(
_icd10CodeController.text, context) _icd10CodeController.text, context)
@@ -287,9 +287,9 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _amountController, controller: _amountController,
multiLineInput: false, multiLineInput: false,
requiredText: true, requiredText: true,
@@ -308,19 +308,19 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
fontSize: 25, fontSize: 25,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
), ),
Divider( Divider(
color: color:
MzanziInnovationHub.of(context)!.theme.secondaryColor()), MzansiInnovationHub.of(context)!.theme.secondaryColor()),
const SizedBox(height: 10), const SizedBox(height: 10),
MihTextFormField( MihTextFormField(
fillColor: fillColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(), MzansiInnovationHub.of(context)!.theme.secondaryColor(),
inputColor: inputColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
controller: _preauthNoController, controller: _preauthNoController,
multiLineInput: false, multiLineInput: false,
requiredText: false, requiredText: false,
@@ -384,13 +384,13 @@ class _ClaimStatementWindowState extends State<ClaimStatementWindow> {
} }
}, },
buttonColor: buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(), MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300, width: 300,
child: Text( child: Text(
"Generate", "Generate",
style: TextStyle( style: TextStyle(
color: color:
MzanziInnovationHub.of(context)!.theme.primaryColor(), MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20, fontSize: 20,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),

Some files were not shown because too many files have changed in this diff Show More