mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
more sophisticated iap icons
This commit is contained in:
parent
60e3cc6e40
commit
9e16b68ae6
1 changed files with 3 additions and 2 deletions
|
@ -22,13 +22,14 @@ class EquipmentProfilesListTile extends StatelessWidget {
|
||||||
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()),
|
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
IAPProductStatus.purchasable => () {
|
IAPProductStatus.pending => null,
|
||||||
|
_ => () {
|
||||||
IAPProductsProvider.of(context).buy(IAPProductType.paidFeatures);
|
IAPProductsProvider.of(context).buy(IAPProductType.paidFeatures);
|
||||||
},
|
},
|
||||||
_ => null,
|
|
||||||
},
|
},
|
||||||
trailing: switch (paidStatus) {
|
trailing: switch (paidStatus) {
|
||||||
IAPProductStatus.purchasable => const Icon(Icons.lock),
|
IAPProductStatus.purchasable => const Icon(Icons.lock),
|
||||||
|
null => const Icon(Icons.lock),
|
||||||
_ => null,
|
_ => null,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue