finish add Prescription

new_prescreption
Elham Rababh 4 years ago
parent ba62056c4d
commit ada10f595a

@ -44,7 +44,7 @@ class _PrescriptionTextFiledState extends State<PrescriptionTextFiled> {
list: widget.elementList,
attributeName: '${widget.keyName}',
attributeValueId: widget.elementList.length == 1
? widget.elementList[0]['${widget.keyId}']
? widget.elementList[0]['${widget.keyId}'].toString()
: '${widget.keyId}',
okText: TranslationBase.of(context).ok,
okFunction: (selectedValue) =>

@ -46,7 +46,6 @@ class _ListSelectDialogState extends State<ListSelectDialog> {
}
showAlertDialog(BuildContext context) {
// set up the buttons
Widget cancelButton = FlatButton(
child: Text(TranslationBase.of(context).cancel),
onPressed: () {
@ -58,9 +57,7 @@ class _ListSelectDialogState extends State<ListSelectDialog> {
Navigator.of(context).pop();
this.widget.okFunction(widget.selectedValue);
});
// set up the AlertDialog
AlertDialog alert = AlertDialog(
// title: Text(widget.title),
content: createDialogList(),
actions: [
cancelButton,

Loading…
Cancel
Save