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()) {