|
|
|
|
@ -44,7 +44,9 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
this.doctorAvatar,
|
|
|
|
|
this.referralDoctorName,
|
|
|
|
|
this.clinicDescription,
|
|
|
|
|
this.infoIcon,this.isReferralClinic=false,this.referralClinic});
|
|
|
|
|
this.infoIcon,
|
|
|
|
|
this.isReferralClinic = false,
|
|
|
|
|
this.referralClinic});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -58,9 +60,13 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
child: CardWithBgWidget(
|
|
|
|
|
bgColor: referralStatusCode == 1
|
|
|
|
|
? Color(0xffc4aa54)
|
|
|
|
|
: referralStatusCode == 46 || referralStatusCode == 2
|
|
|
|
|
: referralStatusCode == 2
|
|
|
|
|
? Colors.green[700]
|
|
|
|
|
: Colors.red[700],
|
|
|
|
|
: referralStatusCode == 46
|
|
|
|
|
? Colors.green[900]
|
|
|
|
|
: referralStatusCode == 4
|
|
|
|
|
? Colors.red[700]
|
|
|
|
|
: Colors.red[900],
|
|
|
|
|
hasBorder: false,
|
|
|
|
|
widget: Container(
|
|
|
|
|
// padding: EdgeInsets.only(left: 20, right: 0, bottom: 0),
|
|
|
|
|
@ -78,9 +84,13 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
color: referralStatusCode == 1
|
|
|
|
|
? Color(0xffc4aa54)
|
|
|
|
|
: referralStatusCode == 46 || referralStatusCode == 2
|
|
|
|
|
: referralStatusCode == 2
|
|
|
|
|
? Colors.green[700]
|
|
|
|
|
: Colors.red[700],
|
|
|
|
|
: referralStatusCode == 46
|
|
|
|
|
? Colors.green[900]
|
|
|
|
|
: referralStatusCode == 4
|
|
|
|
|
? Colors.red[700]
|
|
|
|
|
: Colors.red[900],
|
|
|
|
|
),
|
|
|
|
|
AppText(
|
|
|
|
|
referredDate,
|
|
|
|
|
@ -158,7 +168,10 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppText(
|
|
|
|
|
isSameBranch ? TranslationBase.of(context).referredFrom :TranslationBase.of(context).refClinic,
|
|
|
|
|
isSameBranch
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.referredFrom
|
|
|
|
|
: TranslationBase.of(context).refClinic,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontSize: 1.7 * SizeConfig.textMultiplier,
|
|
|
|
|
@ -166,7 +179,13 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
!isReferralClinic? isSameBranch ? TranslationBase.of(context).sameBranch : TranslationBase.of(context).otherBranch: " "+referralClinic,
|
|
|
|
|
!isReferralClinic
|
|
|
|
|
? isSameBranch
|
|
|
|
|
? TranslationBase.of(context)
|
|
|
|
|
.sameBranch
|
|
|
|
|
: TranslationBase.of(context)
|
|
|
|
|
.otherBranch
|
|
|
|
|
: " " + referralClinic,
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 1.8 * SizeConfig.textMultiplier,
|
|
|
|
|
@ -217,7 +236,7 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: AppText(
|
|
|
|
|
remark??"",
|
|
|
|
|
remark ?? "",
|
|
|
|
|
fontFamily: 'Poppins',
|
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
|
fontSize: 1.8 * SizeConfig.textMultiplier,
|
|
|
|
|
@ -261,13 +280,13 @@ class PatientReferralItemWidget extends StatelessWidget {
|
|
|
|
|
},
|
|
|
|
|
))
|
|
|
|
|
: Container(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
patientGender == 1
|
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
patientGender == 1
|
|
|
|
|
? 'assets/images/male_avatar.png'
|
|
|
|
|
: 'assets/images/female_avatar.png',
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Expanded(
|
|
|
|
|
|