done replay onReferral Patient

merge-requests/569/head
Mohammad Aljammal 5 years ago
parent a3cdacad08
commit 2d52058a94

@ -131,9 +131,8 @@ class _AddReplayOnReferralPatientState extends State<AddReplayOnReferralPatient>
Navigator.of(context).pop(); Navigator.of(context).pop();
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
} }else {
{ Helpers.showErrorToast("You can't add empty replay");
Helpers.showErrorToast("You cant add only spaces");
setState(() { setState(() {
isSubmitted = false; isSubmitted = false;
}); });

@ -148,16 +148,14 @@ class ReferredPatientDetailScreen extends StatelessWidget {
.fileNumber, .fileNumber,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: fontSize: 1.7 * SizeConfig.textMultiplier,
1.7 * SizeConfig.textMultiplier,
color: Color(0XFF575757), color: Color(0XFF575757),
), ),
AppText( AppText(
"${referredPatient.patientID}", "${referredPatient.patientID}",
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: fontSize:14,
1.8 * SizeConfig.textMultiplier,
color: Color(0XFF2E303A), color: Color(0XFF2E303A),
), ),
], ],
@ -193,14 +191,15 @@ class ReferredPatientDetailScreen extends StatelessWidget {
SizeConfig.textMultiplier, SizeConfig.textMultiplier,
color: Color(0XFF575757), color: Color(0XFF575757),
), ),
AppText( Expanded(
referredPatient child: AppText(
.referralClinicDescription, referredPatient
fontFamily: 'Poppins', .referralClinicDescription,
fontWeight: FontWeight.w700, fontFamily: 'Poppins',
fontSize: 1.8 * fontWeight: FontWeight.w700,
SizeConfig.textMultiplier, fontSize: 13,
color: Color(0XFF2E303A), color: Color(0XFF2E303A),
),
), ),
], ],
), ),
@ -226,8 +225,7 @@ class ReferredPatientDetailScreen extends StatelessWidget {
.frequencyDescription, .frequencyDescription,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 1.8 * fontSize: 14,
SizeConfig.textMultiplier,
color: Color(0XFF2E303A), color: Color(0XFF2E303A),
), ),
), ),
@ -282,15 +280,12 @@ class ReferredPatientDetailScreen extends StatelessWidget {
fontSize: 1.7 * SizeConfig.textMultiplier, fontSize: 1.7 * SizeConfig.textMultiplier,
color: Color(0XFF575757), color: Color(0XFF575757),
), ),
Expanded( AppText(
child: AppText( referredPatient.priorityDescription,
referredPatient.priorityDescription, fontFamily: 'Poppins',
fontFamily: 'Poppins', fontWeight: FontWeight.w700,
fontWeight: FontWeight.w700, fontSize:14,
fontSize: color: Color(0XFF2E303A),
1.8 * SizeConfig.textMultiplier,
color: Color(0XFF2E303A),
),
), ),
], ],
), ),
@ -387,8 +382,7 @@ class ReferredPatientDetailScreen extends StatelessWidget {
color: Colors.black, color: Colors.black,
), ),
AppText( AppText(
referredPatient referredPatient.referralClinicDescription,
.referralClinicDescription,
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 1.3 * fontSize: 1.3 *
@ -486,7 +480,7 @@ class ReferredPatientDetailScreen extends StatelessWidget {
color: Color(0XFF2E303A), color: Color(0XFF2E303A),
), ),
AppText( AppText(
referredPatient.referredDoctorRemarks, referredPatient.referredDoctorRemarks.isNotEmpty? referredPatient.referredDoctorRemarks:" Not Replied yet",
fontFamily: 'Poppins', fontFamily: 'Poppins',
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 1.6 * SizeConfig.textMultiplier, fontSize: 1.6 * SizeConfig.textMultiplier,
@ -502,6 +496,7 @@ class ReferredPatientDetailScreen extends StatelessWidget {
), ),
), ),
), ),
if(referredPatient.referralStatus ==1)
Container( Container(
margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16), margin: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
child: AppButton( child: AppButton(

Loading…
Cancel
Save