rename files and widgets from my... to mih...

This commit is contained in:
2024-08-13 10:08:40 +02:00
parent b9a8adb59f
commit 7a6ba04220
30 changed files with 487 additions and 243 deletions

View File

@@ -2,11 +2,11 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/myDropdownInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihDropdownInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/appUser.dart';
@@ -114,7 +114,7 @@ class _AddPatientState extends State<AddPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -134,7 +134,7 @@ class _AddPatientState extends State<AddPatient> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -170,7 +170,7 @@ class _AddPatientState extends State<AddPatient> {
),
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: idController,
hintText: "13 digit ID Number or Passport",
editable: true,
@@ -178,7 +178,7 @@ class _AddPatientState extends State<AddPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "First Name",
editable: false,
@@ -186,7 +186,7 @@ class _AddPatientState extends State<AddPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Last Name",
editable: false,
@@ -195,7 +195,7 @@ class _AddPatientState extends State<AddPatient> {
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: cellController,
hintText: "Cell Number",
editable: true,
@@ -204,7 +204,7 @@ class _AddPatientState extends State<AddPatient> {
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: emailController,
hintText: "Email",
editable: false,
@@ -213,7 +213,7 @@ class _AddPatientState extends State<AddPatient> {
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: addressController,
hintText: "Address",
editable: true,
@@ -232,7 +232,7 @@ class _AddPatientState extends State<AddPatient> {
),
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medAidController,
hintText: "Medical Aid",
editable: true,
@@ -247,7 +247,7 @@ class _AddPatientState extends State<AddPatient> {
child: Column(
children: [
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medMainMemController,
hintText: "Main Member",
editable: medRequired,
@@ -255,28 +255,28 @@ class _AddPatientState extends State<AddPatient> {
dropdownOptions: const ["Yes", "No"],
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNoController,
hintText: "Medical Aid No.",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medAidCodeController,
hintText: "Medical Aid Code",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNameController,
hintText: "Medical Aid Name",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medSchemeController,
hintText: "Medical Aid Scheme",
editable: medRequired,
@@ -291,7 +291,7 @@ class _AddPatientState extends State<AddPatient> {
SizedBox(
width: 450.0,
height: 100.0,
child: MyButton(
child: MIHButton(
onTap: () {
submitForm();
},
@@ -313,7 +313,7 @@ class _AddPatientState extends State<AddPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
}

View File

@@ -3,11 +3,11 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/myDropdownInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihDropdownInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/patients.dart';
@@ -163,7 +163,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -259,7 +259,7 @@ class _EditPatientState extends State<EditPatient> {
SizedBox(
width: 300,
height: 100,
child: MyButton(
child: MIHButton(
onTap: deletePatientApiCall,
buttonText: "Delete",
buttonColor: MzanziInnovationHub.of(context)!
@@ -299,7 +299,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -382,7 +382,7 @@ class _EditPatientState extends State<EditPatient> {
],
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: idController,
hintText: "13 digit ID Number or Passport",
editable: false,
@@ -390,7 +390,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "First Name",
editable: false,
@@ -398,7 +398,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Last Name",
editable: false,
@@ -406,7 +406,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: cellController,
hintText: "Cell Number",
editable: true,
@@ -414,7 +414,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: emailController,
hintText: "Email",
editable: false,
@@ -422,7 +422,7 @@ class _EditPatientState extends State<EditPatient> {
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: addressController,
hintText: "Address",
editable: true,
@@ -440,7 +440,7 @@ class _EditPatientState extends State<EditPatient> {
),
),
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medAidController,
hintText: "Medical Aid",
onSelect: (selected) {
@@ -463,7 +463,7 @@ class _EditPatientState extends State<EditPatient> {
child: Column(
children: [
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: medMainMemController,
hintText: "Main Member.",
editable: medRequired,
@@ -471,28 +471,28 @@ class _EditPatientState extends State<EditPatient> {
dropdownOptions: const ["Yes", "No"],
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNoController,
hintText: "Medical Aid No.",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medAidCodeController,
hintText: "Medical Aid Code",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medNameController,
hintText: "Medical Aid Name",
editable: medRequired,
required: medRequired,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: medSchemeController,
hintText: "Medical Aid Scheme",
editable: medRequired,
@@ -506,7 +506,7 @@ class _EditPatientState extends State<EditPatient> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
onTap: () {
submitForm();
},
@@ -537,7 +537,7 @@ class _EditPatientState extends State<EditPatient> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
}

View File

@@ -8,12 +8,12 @@ import 'package:patient_manager/components/buildPatientList.dart';
import 'package:patient_manager/components/buildPatientQueueList.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/mihLoadingCircle.dart';
import 'package:patient_manager/components/myDateInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/mihDateInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/objects/arguments.dart';
import 'package:patient_manager/objects/patientQueue.dart';
import 'package:supertokens_flutter/http.dart' as http;
import 'package:patient_manager/components/mySearchInput.dart';
import 'package:patient_manager/components/mihSearchInput.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/patients.dart';
@@ -177,7 +177,7 @@ class _PatientManagerState extends State<PatientManager> {
),
//spacer
const SizedBox(height: 10),
MySearchField(
MIHSearchField(
controller: searchController,
hintText: "ID or Medical Aid No. Search",
required: true,
@@ -304,7 +304,7 @@ class _PatientManagerState extends State<PatientManager> {
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
),
const SizedBox(height: 10),
MyDateField(
MIHDateField(
controller: queueDateController,
LableText: "Date",
required: true,
@@ -383,7 +383,7 @@ class _PatientManagerState extends State<PatientManager> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
}

View File

@@ -4,12 +4,12 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/mihLoadingCircle.dart';
import 'package:patient_manager/components/myDropdownInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/myFileInput.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihDropdownInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihFileInput.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/appUser.dart';
@@ -128,7 +128,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -137,7 +137,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -184,21 +184,21 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
),
),
const SizedBox(height: 15.0),
MyTextField(
MIHTextField(
controller: regController,
hintText: "Registration No.",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: nameController,
hintText: "Business Name",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: typeController,
hintText: "Business Type",
dropdownOptions: const ["Doctors Office", "Other"],
@@ -206,7 +206,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
editable: true,
),
const SizedBox(height: 10.0),
MyFileField(
MIHFileField(
controller: logonameController,
hintText: "Logo",
editable: false,
@@ -240,7 +240,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
),
),
const SizedBox(height: 15.0),
MyDropdownField(
MIHDropdownField(
controller: titleController,
hintText: "Title",
dropdownOptions: const ["Doctor", "Assistant"],
@@ -248,21 +248,21 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
editable: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "Name",
editable: false,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Surname",
editable: false,
required: true,
),
const SizedBox(height: 10.0),
MyFileField(
MIHFileField(
controller: signtureController,
hintText: "Signature",
editable: false,
@@ -284,7 +284,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
},
),
const SizedBox(height: 15.0),
MyDropdownField(
MIHDropdownField(
controller: accessController,
hintText: "Access",
dropdownOptions: const ["Full", "Partial"],
@@ -295,7 +295,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
buttonText: "Add",
buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),

View File

@@ -5,12 +5,12 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/mihLoadingCircle.dart';
import 'package:patient_manager/components/myDropdownInput.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/myFileInput.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihDropdownInput.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihFileInput.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/arguments.dart';
@@ -196,7 +196,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -205,7 +205,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -270,21 +270,21 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
),
),
const SizedBox(height: 15.0),
MyTextField(
MIHTextField(
controller: regController,
hintText: "Registration No.",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: nameController,
hintText: "Business Name",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyDropdownField(
MIHDropdownField(
controller: typeController,
hintText: "Business Type",
dropdownOptions: const ["Doctors Office", "Other"],
@@ -292,7 +292,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
editable: true,
),
const SizedBox(height: 10.0),
MyFileField(
MIHFileField(
controller: logonameController,
hintText: "Logo",
editable: false,
@@ -331,7 +331,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
),
),
const SizedBox(height: 15.0),
MyDropdownField(
MIHDropdownField(
controller: titleController,
hintText: "Title",
dropdownOptions: const ["Doctor", "Assistant"],
@@ -339,21 +339,21 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
editable: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "Name",
editable: false,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Surname",
editable: false,
required: true,
),
const SizedBox(height: 10.0),
MyFileField(
MIHFileField(
controller: signtureController,
hintText: "Signature",
editable: false,
@@ -375,7 +375,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
},
),
const SizedBox(height: 15.0),
MyDropdownField(
MIHDropdownField(
controller: accessController,
hintText: "Access",
dropdownOptions: const ["Full", "Partial"],
@@ -386,7 +386,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
buttonText: "Add",
buttonColor: MzanziInnovationHub.of(context)!
.theme

View File

@@ -3,10 +3,10 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihAppBar.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:patient_manager/objects/appUser.dart';
@@ -98,7 +98,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -107,7 +107,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
showDialog(
context: context,
builder: (context) {
return MySuccessMessage(
return MIHSuccessMessage(
successType: "Success",
successMessage: message,
);
@@ -119,7 +119,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Invalid Username");
return const MIHErrorMessage(errorType: "Invalid Username");
},
);
}
@@ -136,7 +136,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
}
@@ -180,21 +180,21 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
),
),
const SizedBox(height: 15.0),
MyTextField(
MIHTextField(
controller: usernameController,
hintText: "Username",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: fnameController,
hintText: "First Name",
editable: true,
required: true,
),
const SizedBox(height: 10.0),
MyTextField(
MIHTextField(
controller: lnameController,
hintText: "Last Name",
editable: true,
@@ -229,7 +229,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
buttonText: "Update",
buttonColor:
MzanziInnovationHub.of(context)!.theme.secondaryColor(),

View File

@@ -3,11 +3,11 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihLoadingCircle.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/myPassInput.dart';
import 'package:patient_manager/components/mySuccessMessage.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihPassInput.dart';
import 'package:patient_manager/components/mihSuccessMessage.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
//import 'package:patient_manager/objects/sessionST.dart';
@@ -139,7 +139,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Internet Connection");
return const MIHErrorMessage(errorType: "Internet Connection");
},
);
}
@@ -148,7 +148,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MySuccessMessage(
return const MIHSuccessMessage(
successType: "Success",
successMessage:
"Congratulations! Your account has been created successfully. You are logged in and can start exploring.\n\nPlease note: more apps will appear once you update your profile.");
@@ -160,7 +160,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "User Exists");
return const MIHErrorMessage(errorType: "User Exists");
},
);
}
@@ -169,7 +169,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Password Match");
return const MIHErrorMessage(errorType: "Password Match");
},
);
}
@@ -178,7 +178,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Invalid Email");
return const MIHErrorMessage(errorType: "Invalid Email");
},
);
}
@@ -187,7 +187,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Password Requirements");
return const MIHErrorMessage(errorType: "Password Requirements");
},
);
}
@@ -210,7 +210,7 @@ class _RegisterState extends State<Register> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
} else {
@@ -272,7 +272,7 @@ class _RegisterState extends State<Register> {
//email input
SizedBox(
width: 500.0,
child: MyTextField(
child: MIHTextField(
controller: emailController,
hintText: 'Email',
editable: true,
@@ -284,7 +284,7 @@ class _RegisterState extends State<Register> {
//password input
SizedBox(
width: 500.0,
child: MyPassField(
child: MIHPassField(
controller: passwordController,
hintText: 'Password',
required: true,
@@ -296,7 +296,7 @@ class _RegisterState extends State<Register> {
//password input
SizedBox(
width: 500.0,
child: MyPassField(
child: MIHPassField(
controller: confirmPasswordController,
hintText: 'Confirm Password',
required: true,
@@ -309,7 +309,7 @@ class _RegisterState extends State<Register> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
buttonText: "Sign Up",
buttonColor: MzanziInnovationHub.of(context)!
.theme

View File

@@ -3,10 +3,10 @@ import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:patient_manager/components/mihLoadingCircle.dart';
import 'package:patient_manager/components/myErrorMessage.dart';
import 'package:patient_manager/components/myPassInput.dart';
import 'package:patient_manager/components/myTextInput.dart';
import 'package:patient_manager/components/mybutton.dart';
import 'package:patient_manager/components/mihErrorMessage.dart';
import 'package:patient_manager/components/mihPassInput.dart';
import 'package:patient_manager/components/mihTextInput.dart';
import 'package:patient_manager/components/mihButton.dart';
import 'package:patient_manager/env/env.dart';
import 'package:patient_manager/main.dart';
import 'package:supabase_auth_ui/supabase_auth_ui.dart';
@@ -79,7 +79,7 @@ class _SignInState extends State<SignIn> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Invalid Credentials");
return const MIHErrorMessage(errorType: "Invalid Credentials");
},
);
}
@@ -89,7 +89,7 @@ class _SignInState extends State<SignIn> {
showDialog(
context: context,
builder: (context) {
return const MyErrorMessage(errorType: "Input Error");
return const MIHErrorMessage(errorType: "Input Error");
},
);
} else {
@@ -148,7 +148,7 @@ class _SignInState extends State<SignIn> {
//email input
SizedBox(
width: 500.0,
child: MyTextField(
child: MIHTextField(
controller: emailController,
hintText: 'Email',
editable: true,
@@ -160,7 +160,7 @@ class _SignInState extends State<SignIn> {
//password input
SizedBox(
width: 500.0,
child: MyPassField(
child: MIHPassField(
controller: passwordController,
hintText: 'Password',
required: true,
@@ -173,7 +173,7 @@ class _SignInState extends State<SignIn> {
SizedBox(
width: 500.0,
height: 100.0,
child: MyButton(
child: MIHButton(
buttonText: "Sign In",
buttonColor: MzanziInnovationHub.of(context)!
.theme