fix add progress note

merge-requests/949/head
Elham Rababh 4 years ago
parent 94b86ee4b9
commit 1755650304

@ -88,6 +88,9 @@ class _AllLabSpecialResultState extends State<AllLabSpecialResult> {
],
),
),
if(model.allSpecialLabList.length == 0)
ErrorMessage(error: TranslationBase.of(context).noItem),
if(model.allSpecialLabList.length > 0)
ListView.builder(
physics: NeverScrollableScrollPhysics(),
itemCount: model.allSpecialLabList.length,

@ -88,16 +88,7 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
patient,
isInpatient: true,
),
body: model.patientProgressNoteList == null ||
model.patientProgressNoteList.length == 0
? widget.visitType == 3
? ErrorMessage(
error: TranslationBase.of(context).errorNoOrders,
)
: ErrorMessage(
error: TranslationBase.of(context).errorNoProgressNote,
)
: Container(
body: Container(
color: Colors.grey[200],
child: Column(
children: <Widget>[
@ -125,7 +116,16 @@ class _ProgressNoteState extends State<ProgressNoteScreen> {
? TranslationBase.of(context).addNewOrderSheet
: TranslationBase.of(context).addProgressNote,
),
Expanded(
model.patientProgressNoteList == null ||
model.patientProgressNoteList.length == 0
? widget.visitType == 3
? ErrorMessage(
error: TranslationBase.of(context).errorNoOrders,
)
: ErrorMessage(
error: TranslationBase.of(context).errorNoProgressNote,
)
:Expanded(
child: Container(
child: ListView.builder(
itemCount: model.patientProgressNoteList.length,

Loading…
Cancel
Save