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']; medicalInstructionsXMLField = json['medicalInstructionsXMLField'];
medicalRemarksField = json['medicalRemarksField']; medicalRemarksField = json['medicalRemarks'];
projectIdField = json['projectIdField']; projectIdField = json['projectIdField'];
projectNameField = json['projectNameField']; projectNameField = json['projectNameField'];
setupIdField = json['setupIdField']; setupIdField = json['setupIdField'];

@ -35,14 +35,16 @@ class _MedicalInstructionsPageState extends State<MedicalInstructionsPage> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.all(21.0), padding: const EdgeInsets.all(21.0),
child: Text(TranslationBase.of(context).medicalInstructions, child: Text(
TranslationBase.of(context).medicalInstructions,
overflow: TextOverflow.clip, overflow: TextOverflow.clip,
style: TextStyle( style: TextStyle(
fontSize: 21.0, fontSize: 21.0,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
color: Color(0xff2B353E), color: Color(0xff2B353E),
letterSpacing: -0.64, letterSpacing: -0.64,
)), ),
),
), ),
Expanded( Expanded(
child: Container( child: Container(
@ -57,8 +59,11 @@ class _MedicalInstructionsPageState extends State<MedicalInstructionsPage> {
), ),
child: Padding( child: Padding(
padding: EdgeInsets.all(16.0), padding: EdgeInsets.all(16.0),
child: Container( child: Column(
child: ListView.separated( crossAxisAlignment: CrossAxisAlignment.start,
children: [
ListView.separated(
shrinkWrap: true,
itemCount: widget.getMedicalInstructionsList[0].medicaLInstructionsField.length, itemCount: widget.getMedicalInstructionsList[0].medicaLInstructionsField.length,
itemBuilder: (BuildContext context, int index) { itemBuilder: (BuildContext context, int index) {
return Container( return Container(
@ -89,7 +94,31 @@ class _MedicalInstructionsPageState extends State<MedicalInstructionsPage> {
child: mHeight(16.0), 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