fix issues with text fields

merge-requests/936/head
Elham Rababh 4 years ago
parent 4dc93f7c31
commit 558de8ec75

@ -123,16 +123,17 @@ class _PatientMakeReferralScreenState extends State<PatientMakeReferralScreen> {
model.patientReferral.length - 1]
.patientDetails
.gender,
referredDate: model
.patientReferral[
model.patientReferral.length - 1]
.referredOn
.split(" ")[0],
referredTime: model
.patientReferral[
model.patientReferral.length - 1]
.referredOn
.split(" ")[1],
///TODO Elham* check this
// referredDate: model
// .patientReferral[
// model.patientReferral.length - 1]
// .referredOn
// .split(" ")[0],
// referredTime: model
// .patientReferral[
// model.patientReferral.length - 1]
// .referredOn
// .split(" ")[1],
patientID:
"${model.patientReferral[model.patientReferral.length - 1].patientID}",
isSameBranch: model

@ -96,7 +96,7 @@ class PatientReferralItemWidget extends StatelessWidget {
: Colors.red[900],
),
AppText(
referredDate,
referredDate??"",
fontFamily: 'Poppins',
fontWeight: FontWeight.w600,
letterSpacing: -0.48,
@ -109,7 +109,7 @@ class PatientReferralItemWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
patientName,
patientName??"",
fontSize: 16.0,
fontWeight: FontWeight.w600,
color: Color(0xff2E303A),
@ -130,7 +130,7 @@ class PatientReferralItemWidget extends StatelessWidget {
width: 4,
),
AppText(
referredTime,
referredTime??"",
fontFamily: 'Poppins',
fontWeight: FontWeight.w600,
fontSize: 12.0,

Loading…
Cancel
Save