|
|
|
|
@ -220,6 +220,12 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
maxLines: 2,
|
|
|
|
|
minLines: 1,
|
|
|
|
|
controller: icdNameController,
|
|
|
|
|
// hasBorder: true,
|
|
|
|
|
// validationError: isFormSubmitted &&
|
|
|
|
|
// widget.mySelectedAssessment
|
|
|
|
|
// .selectedICD == null?TranslationBase
|
|
|
|
|
// .of(context)
|
|
|
|
|
// .emptyMessage:null,
|
|
|
|
|
|
|
|
|
|
enabled: true,
|
|
|
|
|
)
|
|
|
|
|
@ -273,12 +279,14 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
controller: conditionController,
|
|
|
|
|
isDropDown: true,
|
|
|
|
|
enabled: false,
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
validationError: isFormSubmitted &&
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
.selectedDiagnosisCondition == null?TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.emptyMessage:null,
|
|
|
|
|
),
|
|
|
|
|
if (isFormSubmitted &&
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
.selectedDiagnosisCondition ==
|
|
|
|
|
null)
|
|
|
|
|
CustomValidationError(),
|
|
|
|
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
@ -317,38 +325,28 @@ class _AddAssessmentDetailsState extends State<AddAssessmentDetails> {
|
|
|
|
|
enabled: false,
|
|
|
|
|
isDropDown: true,
|
|
|
|
|
controller: typeController,
|
|
|
|
|
hasBorder: true,
|
|
|
|
|
validationError: isFormSubmitted &&
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
.selectedDiagnosisType == null?TranslationBase
|
|
|
|
|
.of(context)
|
|
|
|
|
.emptyMessage:null,
|
|
|
|
|
),
|
|
|
|
|
if (isFormSubmitted &&
|
|
|
|
|
widget.mySelectedAssessment
|
|
|
|
|
.selectedDiagnosisType ==
|
|
|
|
|
null)
|
|
|
|
|
CustomValidationError(),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 0, right: 0, top: 15),
|
|
|
|
|
child: TextFields(
|
|
|
|
|
child: AppTextFieldCustom(
|
|
|
|
|
hintText: TranslationBase.of(context).remarks,
|
|
|
|
|
fontSize: 13.5,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
maxLines: 18,
|
|
|
|
|
minLines: 5,
|
|
|
|
|
hasLabelText:
|
|
|
|
|
remarkController.text != '' ? true : false,
|
|
|
|
|
showLabelText: true,
|
|
|
|
|
controller: remarkController,
|
|
|
|
|
onChanged: (value) {
|
|
|
|
|
widget.mySelectedAssessment.remark =
|
|
|
|
|
remarkController.text;
|
|
|
|
|
},
|
|
|
|
|
validator: (value) {
|
|
|
|
|
if (value == null)
|
|
|
|
|
return TranslationBase.of(context)
|
|
|
|
|
.emptyMessage;
|
|
|
|
|
else
|
|
|
|
|
return null;
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
|