fix issues

withoutcheck_null_safty
Elham Rababh 4 years ago
parent 0c4d6da3f4
commit 73cc5e4b00

@ -84,6 +84,7 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
authenticationViewModel = Provider.of(context); authenticationViewModel = Provider.of(context);
projectsProvider = Provider.of(context);
_times = [ _times = [
TranslationBase.of(context).previous, TranslationBase.of(context).previous,
TranslationBase.of(context).today, TranslationBase.of(context).today,

@ -108,15 +108,13 @@ class PatientReferralItemWidget extends StatelessWidget {
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Expanded( AppText(
child: AppText( patientName,
patientName, fontSize: 16.0,
fontSize: 16.0, fontWeight: FontWeight.w600,
fontWeight: FontWeight.w600, color: Color(0xff2E303A),
color: Color(0xff2E303A), fontFamily: 'Poppins',
fontFamily: 'Poppins', letterSpacing: -0.64,
letterSpacing: -0.64,
),
), ),
SizedBox( SizedBox(
width: 0, width: 0,
@ -148,34 +146,23 @@ class PatientReferralItemWidget extends StatelessWidget {
Expanded( Expanded(
child: Column( child: Column(
children: [ children: [
Row( CustomRow(
mainAxisAlignment: MainAxisAlignment.start, label:
children: [ TranslationBase.of(context).fileNumber,
CustomRow( value: patientID,
label:
TranslationBase.of(context).fileNumber,
value: patientID,
),
],
), ),
Row( CustomRow(
mainAxisAlignment: MainAxisAlignment.start, label: isSameBranch
crossAxisAlignment: CrossAxisAlignment.start, ? TranslationBase.of(context)
children: [ .referredFrom
CustomRow( : TranslationBase.of(context).refClinic,
label: isSameBranch value: !isReferralClinic
? isSameBranch
? TranslationBase.of(context) ? TranslationBase.of(context)
.referredFrom .sameBranch
: TranslationBase.of(context).refClinic, : TranslationBase.of(context)
value: !isReferralClinic .otherBranch
? isSameBranch : " " + referralClinic,
? TranslationBase.of(context)
.sameBranch
: TranslationBase.of(context)
.otherBranch
: " " + referralClinic,
),
],
), ),
], ],
), ),
@ -207,15 +194,9 @@ class PatientReferralItemWidget extends StatelessWidget {
) )
], ],
), ),
Row( CustomRow(
mainAxisAlignment: MainAxisAlignment.start, label: TranslationBase.of(context).remarks + " : ",
crossAxisAlignment: CrossAxisAlignment.start, value: remark ?? "",
children: [
CustomRow(
label: TranslationBase.of(context).remarks + " : ",
value: remark ?? "",
),
],
), ),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

Loading…
Cancel
Save