From 9e16b68ae64f42d37e4a9a31a53eaf0313f1d7dc Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 1 Sep 2023 17:03:28 +0200 Subject: [PATCH] more sophisticated iap icons --- .../widget_list_tile_equipment_profiles.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/screens/settings/components/metering/components/equipment_profiles/widget_list_tile_equipment_profiles.dart b/lib/screens/settings/components/metering/components/equipment_profiles/widget_list_tile_equipment_profiles.dart index c07f64a..b130a75 100644 --- a/lib/screens/settings/components/metering/components/equipment_profiles/widget_list_tile_equipment_profiles.dart +++ b/lib/screens/settings/components/metering/components/equipment_profiles/widget_list_tile_equipment_profiles.dart @@ -22,13 +22,14 @@ class EquipmentProfilesListTile extends StatelessWidget { MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()), ); }, - IAPProductStatus.purchasable => () { + IAPProductStatus.pending => null, + _ => () { IAPProductsProvider.of(context).buy(IAPProductType.paidFeatures); }, - _ => null, }, trailing: switch (paidStatus) { IAPProductStatus.purchasable => const Icon(Icons.lock), + null => const Icon(Icons.lock), _ => null, }, );