mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
PurchaseScreen: Only show monthly offerings
This commit is contained in:
@ -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");
|
||||||
|
Reference in New Issue
Block a user