mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 16:30:40 +00:00
Disable list tile onTap
if IAP is pending
This commit is contained in:
parent
068834bfe5
commit
434327a7d0
1 changed files with 8 additions and 6 deletions
|
@ -18,12 +18,14 @@ class BuyProListTile extends StatelessWidget {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
leading: const Icon(Icons.star),
|
leading: const Icon(Icons.star),
|
||||||
title: Text(unlockFeaturesEnabled ? S.of(context).unlockProFeatures : S.of(context).buyLightmeterPro),
|
title: Text(unlockFeaturesEnabled ? S.of(context).unlockProFeatures : S.of(context).buyLightmeterPro),
|
||||||
onTap: () {
|
onTap: !isPending
|
||||||
|
? () {
|
||||||
showBuyProDialog(context);
|
showBuyProDialog(context);
|
||||||
ServicesProvider.of(context)
|
ServicesProvider.of(context)
|
||||||
.analytics
|
.analytics
|
||||||
.logUnlockProFeatures(unlockFeaturesEnabled ? 'Unlock Pro features' : 'Buy Lightmeter Pro');
|
.logUnlockProFeatures(unlockFeaturesEnabled ? 'Unlock Pro features' : 'Buy Lightmeter Pro');
|
||||||
},
|
}
|
||||||
|
: null,
|
||||||
trailing: isPending
|
trailing: isPending
|
||||||
? const SizedBox(
|
? const SizedBox(
|
||||||
height: Dimens.grid24,
|
height: Dimens.grid24,
|
||||||
|
|
Loading…
Reference in a new issue