remove padding from button & change button size to 50

This commit is contained in:
2024-08-15 15:43:59 +02:00
parent 146e10f1a3
commit 3874534c7a
15 changed files with 33 additions and 34 deletions

View File

@@ -205,7 +205,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
)),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: () {
html.window.open(

View File

@@ -180,7 +180,7 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
const SizedBox(height: 15.0),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
buttonText: "Book",
buttonColor: MzanziInnovationHub.of(context)!

View File

@@ -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,
),
),
);

View File

@@ -270,7 +270,7 @@ class _PatientFilesState extends State<PatientFiles> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
buttonText: "Generate",
buttonColor: MzanziInnovationHub.of(context)!
@@ -431,6 +431,7 @@ class _PatientFilesState extends State<PatientFiles> {
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<PatientFiles> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
buttonText: "Add File",
buttonColor: MzanziInnovationHub.of(context)!

View File

@@ -163,7 +163,7 @@ class _PatientNotesState extends State<PatientNotes> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: () {
if (isFieldsFilled()) {

View File

@@ -71,7 +71,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: widget.onTap,
buttonText: "Delete",
@@ -156,7 +156,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: widget.onTap,
buttonText: "Delete",

View File

@@ -70,7 +70,7 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
const SizedBox(height: 10),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: () {
Navigator.pop(context);

View File

@@ -193,6 +193,7 @@ class _PrescripInputState extends State<PrescripInput> {
),
SizedBox(
width: 300,
height: 50,
child: MIHButton(
buttonText: "Add",
buttonColor:
@@ -280,7 +281,7 @@ class _PrescripInputState extends State<PrescripInput> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: () {
// if (isMedCertFieldsFilled()) {

View File

@@ -290,7 +290,7 @@ class _AddPatientState extends State<AddPatient> {
SizedBox(
width: 450.0,
height: 100.0,
height: 50.0,
child: MIHButton(
onTap: () {
submitForm();

View File

@@ -258,7 +258,7 @@ class _EditPatientState extends State<EditPatient> {
),
SizedBox(
width: 300,
height: 100,
height: 50,
child: MIHButton(
onTap: deletePatientApiCall,
buttonText: "Delete",
@@ -505,7 +505,7 @@ class _EditPatientState extends State<EditPatient> {
//const SizedBox(height: 10.0),
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
onTap: () {
submitForm();

View File

@@ -294,7 +294,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
const SizedBox(height: 15.0),
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
buttonText: "Add",
buttonColor:

View File

@@ -385,7 +385,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
const SizedBox(height: 15.0),
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
buttonText: "Add",
buttonColor: MzanziInnovationHub.of(context)!

View File

@@ -228,7 +228,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
const SizedBox(height: 10.0),
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
buttonText: "Update",
buttonColor:

View File

@@ -308,7 +308,7 @@ class _RegisterState extends State<Register> {
// sign up button
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
buttonText: "Sign Up",
buttonColor: MzanziInnovationHub.of(context)!

View File

@@ -172,7 +172,7 @@ class _SignInState extends State<SignIn> {
// sign in button
SizedBox(
width: 500.0,
height: 100.0,
height: 50.0,
child: MIHButton(
buttonText: "Sign In",
buttonColor: MzanziInnovationHub.of(context)!