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] model.patientReferral.length - 1]
.patientDetails .patientDetails
.gender, .gender,
referredDate: model ///TODO Elham* check this
.patientReferral[ // referredDate: model
model.patientReferral.length - 1] // .patientReferral[
.referredOn // model.patientReferral.length - 1]
.split(" ")[0], // .referredOn
referredTime: model // .split(" ")[0],
.patientReferral[ // referredTime: model
model.patientReferral.length - 1] // .patientReferral[
.referredOn // model.patientReferral.length - 1]
.split(" ")[1], // .referredOn
// .split(" ")[1],
patientID: patientID:
"${model.patientReferral[model.patientReferral.length - 1].patientID}", "${model.patientReferral[model.patientReferral.length - 1].patientID}",
isSameBranch: model isSameBranch: model

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

Loading…
Cancel
Save