mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 08:50:40 +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 }
|
||||
|
||||
class IAPProduct {
|
||||
IAPProduct();
|
||||
abstract class IAPProduct {
|
||||
const IAPProduct._();
|
||||
|
||||
IAPProductStatus get status => IAPProductStatus.purchasable;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ class IAPProducts extends InheritedModel<IAPProductType> {
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue