Update mybutton widget to take in buttonColor & TextColour. Add Success message pop up message.
Update all buttons to include button color and text colors.
This commit is contained in:
parent
b25583ddf3
commit
0c40888907
10 changed files with 226 additions and 88 deletions
|
|
@ -226,7 +226,11 @@ class _EditPatientState extends State<EditPatient> {
|
|||
width: 300,
|
||||
height: 100,
|
||||
child: MyButton(
|
||||
onTap: deletePatientApiCall, buttonText: "Delete"))
|
||||
onTap: deletePatientApiCall,
|
||||
buttonText: "Delete",
|
||||
buttonColor: Colors.blueAccent,
|
||||
textColor: Colors.white,
|
||||
))
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
@ -471,6 +475,8 @@ class _EditPatientState extends State<EditPatient> {
|
|||
}
|
||||
},
|
||||
buttonText: "Update",
|
||||
buttonColor: Colors.blueAccent,
|
||||
textColor: Colors.white,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue