lab fixes

pull/179/head
haroon amjad 3 months ago
parent ee3dd0b5c7
commit b309342cdc

@ -240,6 +240,9 @@ class LabViewModel extends ChangeNotifier {
model: item)) model: item))
}; };
uniqueTestsList = uniqueTests.toList(); uniqueTestsList = uniqueTests.toList();
uniqueTestsList = Utils.uniqueBy(uniqueTestsList, (p) => p.testCode);
uniqueTestsList.sort((a, b) { uniqueTestsList.sort((a, b) {
return a.description!.toLowerCase().compareTo(b.description!.toLowerCase()); return a.description!.toLowerCase().compareTo(b.description!.toLowerCase());
}); });

@ -157,15 +157,15 @@ class ServicesPage extends StatelessWidget {
true, true,
route: AppRoutes.bloodDonationPage, route: AppRoutes.bloodDonationPage,
), ),
HmgServicesComponentModel( // HmgServicesComponentModel(
3, // 3,
"My Child Vaccine".needTranslation, // "My Child Vaccine".needTranslation,
"".needTranslation, // "".needTranslation,
AppAssets.my_child_vaccine_icon, // AppAssets.my_child_vaccine_icon,
bgColor: AppColors.myChildVaccineCardColor, // bgColor: AppColors.myChildVaccineCardColor,
true, // true,
route: AppRoutes.myChildVaccine, // route: AppRoutes.myChildVaccine,
), // ),
// HmgServicesComponentModel( // HmgServicesComponentModel(
// 11, // 11,
// "Covid 19 Test".needTranslation, // "Covid 19 Test".needTranslation,

@ -203,7 +203,6 @@ class _AlphabetScrollPageState extends State<AlphabeticScroll> {
verticalOffset: 100.0, verticalOffset: 100.0,
child: FadeInAnimation( child: FadeInAnimation(
child: LabOrderByTest( child: LabOrderByTest(
appState: getIt<AppState>(), appState: getIt<AppState>(),
onTap: () { onTap: () {
if (items[itemIndex].model != null) { if (items[itemIndex].model != null) {

Loading…
Cancel
Save