more sophisticated iap icons

This commit is contained in:
Vadim 2023-09-01 17:03:28 +02:00
parent 60e3cc6e40
commit 9e16b68ae6

View file

@ -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,
},
);