Remarks field added in medical instructions

Dev_3.3_InPatient_CR
haroon amjad 2 years ago
parent 7389010f91
commit 59b7220a1f

@ -37,7 +37,7 @@ class GetMedicalInstructions {
});
}
medicalInstructionsXMLField = json['medicalInstructionsXMLField'];
medicalRemarksField = json['medicalRemarksField'];
medicalRemarksField = json['medicalRemarks'];
projectIdField = json['projectIdField'];
projectNameField = json['projectNameField'];
setupIdField = json['setupIdField'];

@ -35,14 +35,16 @@ class _MedicalInstructionsPageState extends State<MedicalInstructionsPage> {
children: [
Padding(
padding: const EdgeInsets.all(21.0),
child: Text(TranslationBase.of(context).medicalInstructions,
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 21.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
)),
child: Text(
TranslationBase.of(context).medicalInstructions,
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 21.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
),
),
),
Expanded(
child: Container(
@ -57,39 +59,66 @@ class _MedicalInstructionsPageState extends State<MedicalInstructionsPage> {
),
child: Padding(
padding: EdgeInsets.all(16.0),
child: Container(
child: ListView.separated(
itemCount: widget.getMedicalInstructionsList[0].medicaLInstructionsField.length,
itemBuilder: (BuildContext context, int index) {
return Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
child: SvgPicture.asset("assets/images/new-design/ionic-ios-checkmark-circle.svg"),
),
Container(
width: MediaQuery.of(context).size.width * 0.75,
margin: EdgeInsets.only(left: 5.0, right: 5.0),
child: Text(widget.getMedicalInstructionsList[0].medicaLInstructionsField[index].descriptionField,
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
)),
),
],
));
},
separatorBuilder: (BuildContext context, int index) {
return Padding(
padding: const EdgeInsets.only(left: 14, right: 14),
child: mHeight(16.0),
);
},
)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ListView.separated(
shrinkWrap: true,
itemCount: widget.getMedicalInstructionsList[0].medicaLInstructionsField.length,
itemBuilder: (BuildContext context, int index) {
return Container(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
child: SvgPicture.asset("assets/images/new-design/ionic-ios-checkmark-circle.svg"),
),
Container(
width: MediaQuery.of(context).size.width * 0.75,
margin: EdgeInsets.only(left: 5.0, right: 5.0),
child: Text(widget.getMedicalInstructionsList[0].medicaLInstructionsField[index].descriptionField,
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
)),
),
],
));
},
separatorBuilder: (BuildContext context, int index) {
return Padding(
padding: const EdgeInsets.only(left: 14, right: 14),
child: mHeight(16.0),
);
},
),
mHeight(21),
Text(
TranslationBase.of(context).remarks + ":",
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 21.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
),
),
mHeight(12),
Text(
widget.getMedicalInstructionsList[0].medicalRemarksField,
overflow: TextOverflow.clip,
style: TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w600,
color: Color(0xff2B353E),
letterSpacing: -0.64,
),
),
],
),
),
),
),

Loading…
Cancel
Save