small fix in referal

merge-requests/963/head
Elham Rababh 4 years ago
parent 17998cbbf3
commit 25f902487c

@ -100,7 +100,7 @@ class _ReferredPatientScreenState extends State<ReferredPatientScreen> {
), ),
isMonthShort: true isMonthShort: true
), ),
referredTime:AppDateUtils.getHour( referredTime:model.state == ViewState.BusyLocal ?"":AppDateUtils.getHour(
patientType == PatientType.IN_PATIENT? patientType == PatientType.IN_PATIENT?
AppDateUtils.getDateTimeFromServerFormat( AppDateUtils.getDateTimeFromServerFormat(
model.getReferredPatientItem(index).referralDate, model.getReferredPatientItem(index).referralDate,

@ -160,7 +160,7 @@ class PatientReferralItemWidget extends StatelessWidget {
? TranslationBase.of(context).sameBranch ? TranslationBase.of(context).sameBranch
: TranslationBase.of(context) : TranslationBase.of(context)
.otherBranch .otherBranch
: " " + referralClinic, : " " + Helpers.convertToTitleCase(referralClinic ?? ""),
), ),
], ],
), ),
@ -252,7 +252,7 @@ class PatientReferralItemWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
AppText( AppText(
referralDoctorName ?? "", Helpers.convertToTitleCase(referralDoctorName ?? ""),
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 14.0, fontSize: 14.0,
@ -261,7 +261,8 @@ class PatientReferralItemWidget extends StatelessWidget {
), ),
if (clinicDescription != null) if (clinicDescription != null)
AppText( AppText(
clinicDescription, Helpers.convertToTitleCase(clinicDescription ?? "")
,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 10.0, fontSize: 10.0,

Loading…
Cancel
Save