remove padding from button & change button size to 50
This commit is contained in:
@@ -205,7 +205,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||||||
)),
|
)),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
html.window.open(
|
html.window.open(
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ class _BuildPatientsListState extends State<BuildPatientsList> {
|
|||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Book",
|
buttonText: "Book",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
|||||||
@@ -16,24 +16,21 @@ class MIHButton extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return ElevatedButton(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 25.0),
|
onPressed: onTap,
|
||||||
child: ElevatedButton(
|
style: ElevatedButton.styleFrom(
|
||||||
onPressed: onTap,
|
backgroundColor: buttonColor,
|
||||||
style: ElevatedButton.styleFrom(
|
shape: RoundedRectangleBorder(
|
||||||
backgroundColor: buttonColor,
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
shape: RoundedRectangleBorder(
|
|
||||||
borderRadius: BorderRadius.circular(12.0),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Text(
|
),
|
||||||
buttonText,
|
child: Text(
|
||||||
style: TextStyle(
|
buttonText,
|
||||||
//fontWeight: FontWeight.bold,
|
style: TextStyle(
|
||||||
fontSize: 20,
|
//fontWeight: FontWeight.bold,
|
||||||
color: textColor,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
color: textColor,
|
||||||
),
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Generate",
|
buttonText: "Generate",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
@@ -431,6 +431,7 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
const SizedBox(height: 25.0),
|
const SizedBox(height: 25.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 700,
|
width: 700,
|
||||||
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Select File",
|
buttonText: "Select File",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
@@ -464,7 +465,7 @@ class _PatientFilesState extends State<PatientFiles> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Add File",
|
buttonText: "Add File",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ class _PatientNotesState extends State<PatientNotes> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (isFieldsFilled()) {
|
if (isFieldsFilled()) {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: widget.onTap,
|
onTap: widget.onTap,
|
||||||
buttonText: "Delete",
|
buttonText: "Delete",
|
||||||
@@ -156,7 +156,7 @@ class _MIHDeleteMessageState extends State<MIHDeleteMessage> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: widget.onTap,
|
onTap: widget.onTap,
|
||||||
buttonText: "Delete",
|
buttonText: "Delete",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ class _MIHSuccessMessageState extends State<MIHSuccessMessage> {
|
|||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ class _PrescripInputState extends State<PrescripInput> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Add",
|
buttonText: "Add",
|
||||||
buttonColor:
|
buttonColor:
|
||||||
@@ -280,7 +281,7 @@ class _PrescripInputState extends State<PrescripInput> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// if (isMedCertFieldsFilled()) {
|
// if (isMedCertFieldsFilled()) {
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ class _AddPatientState extends State<AddPatient> {
|
|||||||
|
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 450.0,
|
width: 450.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
submitForm();
|
submitForm();
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ class _EditPatientState extends State<EditPatient> {
|
|||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 300,
|
width: 300,
|
||||||
height: 100,
|
height: 50,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: deletePatientApiCall,
|
onTap: deletePatientApiCall,
|
||||||
buttonText: "Delete",
|
buttonText: "Delete",
|
||||||
@@ -505,7 +505,7 @@ class _EditPatientState extends State<EditPatient> {
|
|||||||
//const SizedBox(height: 10.0),
|
//const SizedBox(height: 10.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
submitForm();
|
submitForm();
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Add",
|
buttonText: "Add",
|
||||||
buttonColor:
|
buttonColor:
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Add",
|
buttonText: "Add",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
|||||||
const SizedBox(height: 10.0),
|
const SizedBox(height: 10.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Update",
|
buttonText: "Update",
|
||||||
buttonColor:
|
buttonColor:
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ class _RegisterState extends State<Register> {
|
|||||||
// sign up button
|
// sign up button
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Sign Up",
|
buttonText: "Sign Up",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ class _SignInState extends State<SignIn> {
|
|||||||
// sign in button
|
// sign in button
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 100.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Sign In",
|
buttonText: "Sign In",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
|
|||||||
Reference in New Issue
Block a user