mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20: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(
|
||||
leading: const Icon(Icons.star),
|
||||
title: Text(unlockFeaturesEnabled ? S.of(context).unlockProFeatures : S.of(context).buyLightmeterPro),
|
||||
onTap: () {
|
||||
onTap: !isPending
|
||||
? () {
|
||||
showBuyProDialog(context);
|
||||
ServicesProvider.of(context)
|
||||
.analytics
|
||||
.logUnlockProFeatures(unlockFeaturesEnabled ? 'Unlock Pro features' : 'Buy Lightmeter Pro');
|
||||
},
|
||||
}
|
||||
: null,
|
||||
trailing: isPending
|
||||
? const SizedBox(
|
||||
height: Dimens.grid24,
|
||||
|
|
Loading…
Reference in a new issue