fix issues

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

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

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

Loading…
Cancel
Save