From b309342cdca2991134465bb24bb487fe91e97390 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 2 Feb 2026 15:30:09 +0300 Subject: [PATCH] lab fixes --- lib/features/lab/lab_view_model.dart | 3 +++ .../hmg_services/services_page.dart | 18 +++++++++--------- lib/presentation/lab/alphabeticScroll.dart | 1 - 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/features/lab/lab_view_model.dart b/lib/features/lab/lab_view_model.dart index 118c54a0..1047dbc 100644 --- a/lib/features/lab/lab_view_model.dart +++ b/lib/features/lab/lab_view_model.dart @@ -240,6 +240,9 @@ class LabViewModel extends ChangeNotifier { model: item)) }; uniqueTestsList = uniqueTests.toList(); + + uniqueTestsList = Utils.uniqueBy(uniqueTestsList, (p) => p.testCode); + uniqueTestsList.sort((a, b) { return a.description!.toLowerCase().compareTo(b.description!.toLowerCase()); }); diff --git a/lib/presentation/hmg_services/services_page.dart b/lib/presentation/hmg_services/services_page.dart index 10b9342..ce2c537 100644 --- a/lib/presentation/hmg_services/services_page.dart +++ b/lib/presentation/hmg_services/services_page.dart @@ -157,15 +157,15 @@ class ServicesPage extends StatelessWidget { true, route: AppRoutes.bloodDonationPage, ), - HmgServicesComponentModel( - 3, - "My Child Vaccine".needTranslation, - "".needTranslation, - AppAssets.my_child_vaccine_icon, - bgColor: AppColors.myChildVaccineCardColor, - true, - route: AppRoutes.myChildVaccine, - ), + // HmgServicesComponentModel( + // 3, + // "My Child Vaccine".needTranslation, + // "".needTranslation, + // AppAssets.my_child_vaccine_icon, + // bgColor: AppColors.myChildVaccineCardColor, + // true, + // route: AppRoutes.myChildVaccine, + // ), // HmgServicesComponentModel( // 11, // "Covid 19 Test".needTranslation, diff --git a/lib/presentation/lab/alphabeticScroll.dart b/lib/presentation/lab/alphabeticScroll.dart index 29ded69..95d9da4 100644 --- a/lib/presentation/lab/alphabeticScroll.dart +++ b/lib/presentation/lab/alphabeticScroll.dart @@ -203,7 +203,6 @@ class _AlphabetScrollPageState extends State { verticalOffset: 100.0, child: FadeInAnimation( child: LabOrderByTest( - appState: getIt(), onTap: () { if (items[itemIndex].model != null) {