From fd7b8b19e3cf19395bbcc584149a8207a9cf40a0 Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Sat, 24 Apr 2021 20:29:01 +0300 Subject: [PATCH] fix progress_note_screen --- .../profile/note/progress_note_screen.dart | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/screens/patients/profile/note/progress_note_screen.dart b/lib/screens/patients/profile/note/progress_note_screen.dart index 14600646..ca434fcf 100644 --- a/lib/screens/patients/profile/note/progress_note_screen.dart +++ b/lib/screens/patients/profile/note/progress_note_screen.dart @@ -121,6 +121,16 @@ class _ProgressNoteState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ + + if(model.patientProgressNoteList[index].status == 1 && authProvider.doctorProfile.doctorID != model.patientProgressNoteList[index].createdBy) + AppText( + 'In Progress',fontWeight: FontWeight.bold, color: Color(0xFFCC9B14),fontSize: 16,), + if(model.patientProgressNoteList[index].status == 4) + AppText( + 'Canceled',fontWeight: FontWeight.bold, color: Colors.red.shade700,fontSize: 16,), + if(model.patientProgressNoteList[index].status == 2) + AppText( + 'Verified',fontWeight: FontWeight.bold, color: Colors.grey.shade700,fontSize: 16,), if (model.patientProgressNoteList[index].status != 2 && model.patientProgressNoteList[index].status != 4 && authProvider.doctorProfile.doctorID == model.patientProgressNoteList[index].createdBy) Row( @@ -347,12 +357,7 @@ class _ProgressNoteState extends State { ), ], ), - if(model.patientProgressNoteList[index].status == 4) - AppText( - 'Canceled',fontWeight: FontWeight.w600, color: Colors.red.shade700,fontSize: 12,), - if(model.patientProgressNoteList[index].status == 2) - AppText( - 'verified',fontWeight: FontWeight.w600, color: Colors.grey.shade700,fontSize: 12,), + ], ), ),