|
|
|
|
@ -43,10 +43,10 @@ class _PrescriptionTextFiledState extends State<PrescriptionTextFiled> {
|
|
|
|
|
ListSelectDialog dialog = ListSelectDialog(
|
|
|
|
|
list: widget.elementList,
|
|
|
|
|
attributeName: '${widget.keyName}',
|
|
|
|
|
attributeValueId: '${widget.keyId}',
|
|
|
|
|
attributeValueId:
|
|
|
|
|
widget.elementList.length == 1 ? widget.elementList[0]['${widget.keyId}'] : '${widget.keyId}',
|
|
|
|
|
okText: TranslationBase.of(context).ok,
|
|
|
|
|
okFunction: (selectedValue) =>
|
|
|
|
|
widget.okFunction(selectedValue),
|
|
|
|
|
okFunction: (selectedValue) => widget.okFunction(selectedValue),
|
|
|
|
|
);
|
|
|
|
|
showDialog(
|
|
|
|
|
barrierDismissible: false,
|
|
|
|
|
@ -65,8 +65,7 @@ class _PrescriptionTextFiledState extends State<PrescriptionTextFiled> {
|
|
|
|
|
? widget.element['${widget.keyName}']
|
|
|
|
|
: null,
|
|
|
|
|
isTextFieldHasSuffix: true,
|
|
|
|
|
validationError:
|
|
|
|
|
widget.elementList.length != 1 ? widget.elementError : null,
|
|
|
|
|
validationError: widget.elementList.length != 1 ? widget.elementError : null,
|
|
|
|
|
enabled: false,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|