forked from yaso_meth/mih-project
remove padding from button & change button size to 50
This commit is contained in:
@@ -205,7 +205,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
||||
)),
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 100,
|
||||
height: 50,
|
||||
child: MIHButton(
|
||||
onTap: () {
|
||||
html.window.open(
|
||||
|
||||
@@ -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)!
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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)!
|
||||
|
||||
@@ -163,7 +163,7 @@ class _PatientNotesState extends State<PatientNotes> {
|
||||
),
|
||||
SizedBox(
|
||||
width: 300,
|
||||
height: 100,
|
||||
height: 50,
|
||||
child: MIHButton(
|
||||
onTap: () {
|
||||
if (isFieldsFilled()) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -290,7 +290,7 @@ class _AddPatientState extends State<AddPatient> {
|
||||
|
||||
SizedBox(
|
||||
width: 450.0,
|
||||
height: 100.0,
|
||||
height: 50.0,
|
||||
child: MIHButton(
|
||||
onTap: () {
|
||||
submitForm();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)!
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)!
|
||||
|
||||
@@ -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)!
|
||||
|
||||
Reference in New Issue
Block a user