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,8 +108,7 @@ 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,
@ -117,7 +116,6 @@ class PatientReferralItemWidget extends StatelessWidget {
fontFamily: 'Poppins', fontFamily: 'Poppins',
letterSpacing: -0.64, letterSpacing: -0.64,
), ),
),
SizedBox( SizedBox(
width: 0, width: 0,
), ),
@ -147,21 +145,12 @@ class PatientReferralItemWidget extends StatelessWidget {
children: [ children: [
Expanded( Expanded(
child: Column( child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
CustomRow( CustomRow(
label: label:
TranslationBase.of(context).fileNumber, TranslationBase.of(context).fileNumber,
value: patientID, value: patientID,
), ),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomRow( CustomRow(
label: isSameBranch label: isSameBranch
? TranslationBase.of(context) ? TranslationBase.of(context)
@ -177,8 +166,6 @@ class PatientReferralItemWidget extends StatelessWidget {
), ),
], ],
), ),
],
),
), ),
Row( Row(
children: [ children: [
@ -207,16 +194,10 @@ class PatientReferralItemWidget extends StatelessWidget {
) )
], ],
), ),
Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomRow( CustomRow(
label: TranslationBase.of(context).remarks + " : ", label: TranslationBase.of(context).remarks + " : ",
value: remark ?? "", value: remark ?? "",
), ),
],
),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [

Loading…
Cancel
Save