diff --git a/Frontend/patient_manager/lib/components/builders/buildFilesList.dart b/Frontend/patient_manager/lib/components/builders/buildFilesList.dart index f6150eac..db32a323 100644 --- a/Frontend/patient_manager/lib/components/builders/buildFilesList.dart +++ b/Frontend/patient_manager/lib/components/builders/buildFilesList.dart @@ -205,7 +205,7 @@ class _BuildFilesListState extends State { )), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: () { html.window.open( diff --git a/Frontend/patient_manager/lib/components/builders/buildPatientList.dart b/Frontend/patient_manager/lib/components/builders/buildPatientList.dart index fbdbc2cf..871d6ac0 100644 --- a/Frontend/patient_manager/lib/components/builders/buildPatientList.dart +++ b/Frontend/patient_manager/lib/components/builders/buildPatientList.dart @@ -180,7 +180,7 @@ class _BuildPatientsListState extends State { const SizedBox(height: 15.0), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( buttonText: "Book", buttonColor: MzanziInnovationHub.of(context)! diff --git a/Frontend/patient_manager/lib/components/inputsAndButtons/mihButton.dart b/Frontend/patient_manager/lib/components/inputsAndButtons/mihButton.dart index 1a1a6b5a..e027851a 100644 --- a/Frontend/patient_manager/lib/components/inputsAndButtons/mihButton.dart +++ b/Frontend/patient_manager/lib/components/inputsAndButtons/mihButton.dart @@ -16,24 +16,21 @@ class MIHButton extends StatelessWidget { @override Widget build(BuildContext context) { - return Padding( - padding: const EdgeInsets.symmetric(vertical: 25.0), - child: ElevatedButton( - onPressed: onTap, - style: ElevatedButton.styleFrom( - backgroundColor: buttonColor, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12.0), - ), + return ElevatedButton( + onPressed: onTap, + style: ElevatedButton.styleFrom( + backgroundColor: buttonColor, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12.0), ), - child: Text( - buttonText, - style: TextStyle( - //fontWeight: FontWeight.bold, - fontSize: 20, - color: textColor, - fontWeight: FontWeight.bold, - ), + ), + child: Text( + buttonText, + style: TextStyle( + //fontWeight: FontWeight.bold, + fontSize: 20, + color: textColor, + fontWeight: FontWeight.bold, ), ), ); diff --git a/Frontend/patient_manager/lib/components/patientFiles.dart b/Frontend/patient_manager/lib/components/patientFiles.dart index 0fec67eb..f119676d 100644 --- a/Frontend/patient_manager/lib/components/patientFiles.dart +++ b/Frontend/patient_manager/lib/components/patientFiles.dart @@ -270,7 +270,7 @@ class _PatientFilesState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( buttonText: "Generate", buttonColor: MzanziInnovationHub.of(context)! @@ -431,6 +431,7 @@ class _PatientFilesState extends State { const SizedBox(height: 25.0), SizedBox( width: 700, + height: 50, child: MIHButton( buttonText: "Select File", buttonColor: MzanziInnovationHub.of(context)! @@ -464,7 +465,7 @@ class _PatientFilesState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( buttonText: "Add File", buttonColor: MzanziInnovationHub.of(context)! diff --git a/Frontend/patient_manager/lib/components/patientNotes.dart b/Frontend/patient_manager/lib/components/patientNotes.dart index 551094ec..80ec5bf5 100644 --- a/Frontend/patient_manager/lib/components/patientNotes.dart +++ b/Frontend/patient_manager/lib/components/patientNotes.dart @@ -163,7 +163,7 @@ class _PatientNotesState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: () { if (isFieldsFilled()) { diff --git a/Frontend/patient_manager/lib/components/popUpMessages/mihDeleteMessage.dart b/Frontend/patient_manager/lib/components/popUpMessages/mihDeleteMessage.dart index f48ee86f..132e8719 100644 --- a/Frontend/patient_manager/lib/components/popUpMessages/mihDeleteMessage.dart +++ b/Frontend/patient_manager/lib/components/popUpMessages/mihDeleteMessage.dart @@ -71,7 +71,7 @@ class _MIHDeleteMessageState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: widget.onTap, buttonText: "Delete", @@ -156,7 +156,7 @@ class _MIHDeleteMessageState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: widget.onTap, buttonText: "Delete", diff --git a/Frontend/patient_manager/lib/components/popUpMessages/mihSuccessMessage.dart b/Frontend/patient_manager/lib/components/popUpMessages/mihSuccessMessage.dart index bf723a9c..fe62ec0b 100644 --- a/Frontend/patient_manager/lib/components/popUpMessages/mihSuccessMessage.dart +++ b/Frontend/patient_manager/lib/components/popUpMessages/mihSuccessMessage.dart @@ -70,7 +70,7 @@ class _MIHSuccessMessageState extends State { const SizedBox(height: 10), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: () { Navigator.pop(context); diff --git a/Frontend/patient_manager/lib/components/prescipInput.dart b/Frontend/patient_manager/lib/components/prescipInput.dart index 063ec1dc..a4ce87ed 100644 --- a/Frontend/patient_manager/lib/components/prescipInput.dart +++ b/Frontend/patient_manager/lib/components/prescipInput.dart @@ -193,6 +193,7 @@ class _PrescripInputState extends State { ), SizedBox( width: 300, + height: 50, child: MIHButton( buttonText: "Add", buttonColor: @@ -280,7 +281,7 @@ class _PrescripInputState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: () { // if (isMedCertFieldsFilled()) { diff --git a/Frontend/patient_manager/lib/pages/patientAdd.dart b/Frontend/patient_manager/lib/pages/patientAdd.dart index 4c38a098..4a251429 100644 --- a/Frontend/patient_manager/lib/pages/patientAdd.dart +++ b/Frontend/patient_manager/lib/pages/patientAdd.dart @@ -290,7 +290,7 @@ class _AddPatientState extends State { SizedBox( width: 450.0, - height: 100.0, + height: 50.0, child: MIHButton( onTap: () { submitForm(); diff --git a/Frontend/patient_manager/lib/pages/patientEdit.dart b/Frontend/patient_manager/lib/pages/patientEdit.dart index 68226d53..3002e994 100644 --- a/Frontend/patient_manager/lib/pages/patientEdit.dart +++ b/Frontend/patient_manager/lib/pages/patientEdit.dart @@ -258,7 +258,7 @@ class _EditPatientState extends State { ), SizedBox( width: 300, - height: 100, + height: 50, child: MIHButton( onTap: deletePatientApiCall, buttonText: "Delete", @@ -505,7 +505,7 @@ class _EditPatientState extends State { //const SizedBox(height: 10.0), SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( onTap: () { submitForm(); diff --git a/Frontend/patient_manager/lib/pages/profileBusinessAdd.dart b/Frontend/patient_manager/lib/pages/profileBusinessAdd.dart index 5dbedcbf..3dba1210 100644 --- a/Frontend/patient_manager/lib/pages/profileBusinessAdd.dart +++ b/Frontend/patient_manager/lib/pages/profileBusinessAdd.dart @@ -294,7 +294,7 @@ class _ProfileBusinessAddState extends State { const SizedBox(height: 15.0), SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( buttonText: "Add", buttonColor: diff --git a/Frontend/patient_manager/lib/pages/profileBusinessUpdate.dart b/Frontend/patient_manager/lib/pages/profileBusinessUpdate.dart index 793de3ce..4de27ae4 100644 --- a/Frontend/patient_manager/lib/pages/profileBusinessUpdate.dart +++ b/Frontend/patient_manager/lib/pages/profileBusinessUpdate.dart @@ -385,7 +385,7 @@ class _ProfileBusinessUpdateState extends State { const SizedBox(height: 15.0), SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( buttonText: "Add", buttonColor: MzanziInnovationHub.of(context)! diff --git a/Frontend/patient_manager/lib/pages/profileUserUpdate.dart b/Frontend/patient_manager/lib/pages/profileUserUpdate.dart index 068bdc3e..0c35d274 100644 --- a/Frontend/patient_manager/lib/pages/profileUserUpdate.dart +++ b/Frontend/patient_manager/lib/pages/profileUserUpdate.dart @@ -228,7 +228,7 @@ class _ProfileUserUpdateState extends State { const SizedBox(height: 10.0), SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( buttonText: "Update", buttonColor: diff --git a/Frontend/patient_manager/lib/pages/register.dart b/Frontend/patient_manager/lib/pages/register.dart index e8cbf665..d2e33047 100644 --- a/Frontend/patient_manager/lib/pages/register.dart +++ b/Frontend/patient_manager/lib/pages/register.dart @@ -308,7 +308,7 @@ class _RegisterState extends State { // sign up button SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( buttonText: "Sign Up", buttonColor: MzanziInnovationHub.of(context)! diff --git a/Frontend/patient_manager/lib/pages/signin.dart b/Frontend/patient_manager/lib/pages/signin.dart index 3c79f99c..62c151f8 100644 --- a/Frontend/patient_manager/lib/pages/signin.dart +++ b/Frontend/patient_manager/lib/pages/signin.dart @@ -172,7 +172,7 @@ class _SignInState extends State { // sign in button SizedBox( width: 500.0, - height: 100.0, + height: 50.0, child: MIHButton( buttonText: "Sign In", buttonColor: MzanziInnovationHub.of(context)!