PurchaseScreen: Only show monthly offerings

This commit is contained in:
Vishesh Handa
2020-04-22 23:31:19 +02:00
parent 45a57da88a
commit f67300cce7

View File

@ -45,6 +45,7 @@ class _PurchaseScreenState extends State<PurchaseScreen> {
} }
} }
var offeringList = offerings.all.values.toList(); var offeringList = offerings.all.values.toList();
offeringList.retainWhere((Offering o) => o.identifier.contains("monthly"));
offeringList.sort((Offering a, Offering b) => offeringList.sort((Offering a, Offering b) =>
a.monthly.product.price.compareTo(b.monthly.product.price)); a.monthly.product.price.compareTo(b.monthly.product.price));
print("Offerings: $offeringList"); print("Offerings: $offeringList");