fixed iap repo

This commit is contained in:
Vadim 2023-09-02 12:25:51 +02:00
parent a0d09abcc1
commit 0b9b72011e
2 changed files with 11 additions and 3 deletions

View file

@ -1,5 +1,13 @@
enum IAPProductStatus {
purchasable,
pending,
purchased,
}
enum IAPProductType { paidFeatures } enum IAPProductType { paidFeatures }
class IAPProduct { abstract class IAPProduct {
IAPProduct(); const IAPProduct._();
IAPProductStatus get status => IAPProductStatus.purchasable;
} }

View file

@ -35,7 +35,7 @@ class IAPProducts extends InheritedModel<IAPProductType> {
super.key, super.key,
}); });
static IAPProduct? of(BuildContext context, IAPProductType type) => null; static IAPProduct? productOf(BuildContext context, IAPProductType type) => null;
static bool isPurchased(BuildContext context, IAPProductType type) => false; static bool isPurchased(BuildContext context, IAPProductType type) => false;