change medical profile icons

er_location
Mohammad Aljammal 6 years ago
parent 3ffff9686d
commit d6a27a8e28

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -10,9 +10,10 @@ class MedicalViewModel extends BaseViewModel {
List<AppoitmentAllHistoryResultList> get appoitmentAllHistoryResultList => List<AppoitmentAllHistoryResultList> get appoitmentAllHistoryResultList =>
_medicalService.appoitmentAllHistoryResultList; _medicalService.appoitmentAllHistoryResultList;
getAppointmentHistory() async{ getAppointmentHistory() async {
setState(ViewState.Busy); setState(ViewState.Busy);
await _medicalService.getAppointmentHistory(); if (_medicalService.appoitmentAllHistoryResultList.length == 0)
await _medicalService.getAppointmentHistory();
if (_medicalService.hasError) { if (_medicalService.hasError) {
error = _medicalService.error; error = _medicalService.error;
setState(ViewState.Error); setState(ViewState.Error);

@ -180,7 +180,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.vitalSigns, .vitalSigns,
imagePath: 'medical_history_icon.png', imagePath: 'vital_signs.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.vitalSignsSubtitle, .vitalSignsSubtitle,
), ),
@ -194,7 +194,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.myMedical, .myMedical,
imagePath: 'radiology_icon.png', imagePath: 'active_medications.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.myMedicalSubtitle, .myMedicalSubtitle,
), ),
@ -235,8 +235,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
}, },
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context).eye, title: TranslationBase.of(context).eye,
imagePath: imagePath: 'eye_measurement_icon.png',
'insurance_approvals_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.eyeSubtitle, .eyeSubtitle,
), ),
@ -271,7 +270,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.updateInsurance, .updateInsurance,
imagePath: 'insurance_card_icon.png', imagePath: 'insurance_update_icon_.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.updateInsuranceSubtitle, .updateInsuranceSubtitle,
), ),
@ -299,7 +298,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
onTap:()=> Navigator.push(context, FadePage(page: AllergiesPage())) , onTap:()=> Navigator.push(context, FadePage(page: AllergiesPage())) ,
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context).allergies, title: TranslationBase.of(context).allergies,
imagePath: 'medical_history_icon.png', imagePath: 'my_allergies_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.allergiesSubtitle, .allergiesSubtitle,
), ),
@ -317,7 +316,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.myVaccines, .myVaccines,
imagePath: 'insurance_card_icon.png', imagePath: 'my_vaccines_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.myVaccinesSubtitle, .myVaccinesSubtitle,
), ),
@ -333,7 +332,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: title:
TranslationBase.of(context).medical, TranslationBase.of(context).medical,
imagePath: 'insurance_approvals_icon.png', imagePath: 'medical_reports_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.medicalSubtitle, .medicalSubtitle,
), ),
@ -349,7 +348,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: title:
TranslationBase.of(context).monthly, TranslationBase.of(context).monthly,
imagePath: 'medical_history_icon.png', imagePath: 'monthly_reports_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.monthlySubtitle, .monthlySubtitle,
), ),
@ -368,7 +367,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
}, },
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context).sick, title: TranslationBase.of(context).sick,
imagePath: 'insurance_card_icon.png', imagePath: 'sick_leaves_icons.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.sickSubtitle, .sickSubtitle,
), ),
@ -384,7 +383,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: title:
TranslationBase.of(context).myBalance, TranslationBase.of(context).myBalance,
imagePath: 'insurance_approvals_icon.png', imagePath: 'check-in.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.myBalanceSubtitle, .myBalanceSubtitle,
), ),
@ -413,7 +412,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.smartWatches, .smartWatches,
imagePath: 'insurance_card_icon.png', imagePath: 'smartwatch_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.smartWatchesSubtitle, .smartWatchesSubtitle,
), ),
@ -429,7 +428,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context) title: TranslationBase.of(context)
.myTrackers, .myTrackers,
imagePath: 'insurance_approvals_icon.png', imagePath: 'my_tracker_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.myTrackersSubtitle, .myTrackersSubtitle,
), ),
@ -444,7 +443,7 @@ class _MedicalProfilePageState extends State<MedicalProfilePage> {
}, },
child: MedicalProfileItem( child: MedicalProfileItem(
title: TranslationBase.of(context).askYour, title: TranslationBase.of(context).askYour,
imagePath: 'medical_history_icon.png', imagePath: 'ask_doctor_icon.png',
subTitle: TranslationBase.of(context) subTitle: TranslationBase.of(context)
.askYourSubtitle, .askYourSubtitle,
), ),

@ -42,7 +42,8 @@ class MedicalProfileItem extends StatelessWidget {
alignment: Alignment.bottomRight, alignment: Alignment.bottomRight,
child: Image.asset( child: Image.asset(
"assets/images/medical/$imagePath", "assets/images/medical/$imagePath",
height: SizeConfig.heightMultiplier * 7, height: SizeConfig.heightMultiplier * 5,
width: SizeConfig.heightMultiplier * 5,
), ),
) )
], ],

Loading…
Cancel
Save