mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
fixed iap repo
This commit is contained in:
parent
a0d09abcc1
commit
0b9b72011e
2 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue