|
|
|
|
@ -558,78 +558,90 @@ class _UpdatePrescriptionFormState extends State<UpdatePrescriptionForm> {
|
|
|
|
|
height: 12.0,
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: screenSize.height * 0.070,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.29,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: indicationList != null
|
|
|
|
|
? () {
|
|
|
|
|
Helpers.hideKeyboard(
|
|
|
|
|
context);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: TextField(
|
|
|
|
|
decoration:
|
|
|
|
|
textFieldSelectorDecoration(
|
|
|
|
|
model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.patientAssessmentList[
|
|
|
|
|
0]
|
|
|
|
|
.icdCode10ID
|
|
|
|
|
.toString()
|
|
|
|
|
: '',
|
|
|
|
|
indication != null
|
|
|
|
|
? indication['name']
|
|
|
|
|
: null,
|
|
|
|
|
true),
|
|
|
|
|
enabled: true,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.61,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: indicationList != null
|
|
|
|
|
? () {
|
|
|
|
|
Helpers.hideKeyboard(
|
|
|
|
|
context);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: TextField(
|
|
|
|
|
maxLines: 3,
|
|
|
|
|
decoration:
|
|
|
|
|
textFieldSelectorDecoration(
|
|
|
|
|
model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.patientAssessmentList[
|
|
|
|
|
0]
|
|
|
|
|
.asciiDesc
|
|
|
|
|
.toString()
|
|
|
|
|
: '',
|
|
|
|
|
indication != null
|
|
|
|
|
? indication['name']
|
|
|
|
|
: null,
|
|
|
|
|
true),
|
|
|
|
|
enabled: true,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
height: model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? screenSize.height * 0.070
|
|
|
|
|
: 0.0,
|
|
|
|
|
width: model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? double.infinity
|
|
|
|
|
: 0.0,
|
|
|
|
|
child: model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.29,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap:
|
|
|
|
|
indicationList != null
|
|
|
|
|
? () {
|
|
|
|
|
Helpers.hideKeyboard(
|
|
|
|
|
context);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: TextField(
|
|
|
|
|
decoration: textFieldSelectorDecoration(
|
|
|
|
|
model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.patientAssessmentList[
|
|
|
|
|
0]
|
|
|
|
|
.icdCode10ID
|
|
|
|
|
.toString()
|
|
|
|
|
: '',
|
|
|
|
|
indication != null
|
|
|
|
|
? indication[
|
|
|
|
|
'name']
|
|
|
|
|
: null,
|
|
|
|
|
true),
|
|
|
|
|
enabled: true,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width:
|
|
|
|
|
MediaQuery.of(context)
|
|
|
|
|
.size
|
|
|
|
|
.width *
|
|
|
|
|
0.61,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap:
|
|
|
|
|
indicationList != null
|
|
|
|
|
? () {
|
|
|
|
|
Helpers.hideKeyboard(
|
|
|
|
|
context);
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
child: TextField(
|
|
|
|
|
maxLines: 3,
|
|
|
|
|
decoration: textFieldSelectorDecoration(
|
|
|
|
|
model.patientAssessmentList
|
|
|
|
|
.isNotEmpty
|
|
|
|
|
? model
|
|
|
|
|
.patientAssessmentList[
|
|
|
|
|
0]
|
|
|
|
|
.asciiDesc
|
|
|
|
|
.toString()
|
|
|
|
|
: '',
|
|
|
|
|
indication != null
|
|
|
|
|
? indication[
|
|
|
|
|
'name']
|
|
|
|
|
: null,
|
|
|
|
|
true),
|
|
|
|
|
enabled: true,
|
|
|
|
|
readOnly: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: null),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12.0,
|
|
|
|
|
),
|
|
|
|
|
|