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

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

View File

@@ -38,7 +38,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
child: FittedBox(
child: Icon(
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(
alertIcon: Icon(
Icons.fingerprint,
color: MzanziInnovationHub.of(context)!.theme.errorColor(),
color: MzansiInnovationHub.of(context)!.theme.errorColor(),
size: 100,
),
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.",
style: TextStyle(
fontSize: 15,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
),
const SizedBox(height: 20),
@@ -138,13 +138,13 @@ class _BiometricCheckState extends State<BiometricCheck> {
Navigator.of(context).pop();
},
buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
width: 300,
child: Text(
"Set Up Authentication",
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20,
fontWeight: FontWeight.bold,
),
@@ -156,13 +156,13 @@ class _BiometricCheckState extends State<BiometricCheck> {
authenticateUser();
},
buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(),
MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300,
child: Text(
"Authenticate Now",
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20,
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(
context: context,
@@ -198,7 +198,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
Icons.fingerprint,
size: 100,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
//spacer
const SizedBox(height: 10),
@@ -209,7 +209,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
color: MzansiInnovationHub.of(context)!
.theme
.secondaryColor(),
),
@@ -221,7 +221,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
Icons.lock,
size: 200,
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
const SizedBox(height: 30),
MihButton(
@@ -229,12 +229,12 @@ class _BiometricCheckState extends State<BiometricCheck> {
authenticateUser();
},
buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(),
MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300,
child: Text(
"Authenticate Now",
style: TextStyle(
color: MzanziInnovationHub.of(context)!
color: MzansiInnovationHub.of(context)!
.theme
.primaryColor(),
fontSize: 20,
@@ -274,7 +274,7 @@ class _BiometricCheckState extends State<BiometricCheck> {
@override
Widget build(BuildContext context) {
if (MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web") {
if (MzansiInnovationHub.of(context)!.theme.getPlatform() == "Web") {
return MIHProfileGetter(
personalSelected: widget.personalSelected,
);

View File

@@ -79,11 +79,11 @@ class _ForgotPasswordState extends State<ForgotPassword> {
}
Color getPrim() {
return MzanziInnovationHub.of(context)!.theme.secondaryColor();
return MzansiInnovationHub.of(context)!.theme.secondaryColor();
}
Color getSec() {
return MzanziInnovationHub.of(context)!.theme.primaryColor();
return MzansiInnovationHub.of(context)!.theme.primaryColor();
}
void prePassResteWarning() {
@@ -94,7 +94,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
alertIcon: Icon(
Icons.warning_amber_rounded,
size: 100,
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
color: MzansiInnovationHub.of(context)!.theme.secondaryColor(),
),
alertTitle: "Password Reset Confirmation",
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.",
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
MzansiInnovationHub.of(context)!.theme.secondaryColor(),
fontSize: 15.0,
fontWeight: FontWeight.bold,
),
@@ -122,13 +122,13 @@ class _ForgotPasswordState extends State<ForgotPassword> {
validateInput();
},
buttonColor:
MzanziInnovationHub.of(context)!.theme.successColor(),
MzansiInnovationHub.of(context)!.theme.successColor(),
width: 300,
child: Text(
"Continue",
style: TextStyle(
color:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
MzansiInnovationHub.of(context)!.theme.primaryColor(),
fontSize: 20,
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(
physics: const BouncingScrollPhysics(),
child: Padding(
padding: MzanziInnovationHub.of(context)!.theme.screenType ==
padding: MzansiInnovationHub.of(context)!.theme.screenType ==
"desktop"
? EdgeInsets.symmetric(
vertical: 25, horizontal: width * 0.2)
@@ -236,7 +236,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
Icon(
Icons.lock,
size: 100,
color: MzanziInnovationHub.of(context)!
color: MzansiInnovationHub.of(context)!
.theme
.secondaryColor(),
),
@@ -248,7 +248,7 @@ class _ForgotPasswordState extends State<ForgotPassword> {
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: MzanziInnovationHub.of(context)!
color: MzansiInnovationHub.of(context)!
.theme
.secondaryColor(),
),
@@ -258,10 +258,10 @@ class _ForgotPasswordState extends State<ForgotPassword> {
formKey: _formKey,
formFields: [
MihTextFormField(
fillColor: MzanziInnovationHub.of(context)!
fillColor: MzansiInnovationHub.of(context)!
.theme
.secondaryColor(),
inputColor: MzanziInnovationHub.of(context)!
inputColor: MzansiInnovationHub.of(context)!
.theme
.primaryColor(),
controller: emailController,
@@ -286,14 +286,14 @@ class _ForgotPasswordState extends State<ForgotPassword> {
.formNotFilledCompletely(context);
}
},
buttonColor: MzanziInnovationHub.of(context)!
buttonColor: MzansiInnovationHub.of(context)!
.theme
.successColor(),
width: 300,
child: Text(
"Reset Password",
style: TextStyle(
color: MzanziInnovationHub.of(context)!
color: MzansiInnovationHub.of(context)!
.theme
.primaryColor(),
fontSize: 20,

View File

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

View File

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

View File

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