Update subscribtions
This commit is contained in:
parent
594bce0b8d
commit
67e885e76a
@ -29,7 +29,7 @@ class _PurchasePageState extends State<PurchasePage> {
|
||||
_error = "Error connecting to store";
|
||||
});
|
||||
} else {
|
||||
const Set<String> _kIds = {'just_few_bucks', 'flat_white_a_month', 'lunch_a_year', 'lunch_a_month'};
|
||||
const Set<String> _kIds = {'just_few_bucks_per_year', 'app_fan_support_per_year', 'grateful_user_support_per_year'};
|
||||
final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds);
|
||||
if (!response.notFoundIDs.isEmpty) {
|
||||
Logger.d("Products not found: ${response.notFoundIDs}");
|
||||
|
@ -12,12 +12,12 @@ class ProductPurchase extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
String period = "/ ";
|
||||
Color priceColor;
|
||||
if (product.id.contains("month")) {
|
||||
period += "month";
|
||||
priceColor = Colors.deepOrangeAccent;
|
||||
} else {
|
||||
if (product.id.contains("year")) {
|
||||
period += "year";
|
||||
priceColor = Colors.amber;
|
||||
} else {
|
||||
period += "month";
|
||||
priceColor = Colors.deepOrangeAccent;
|
||||
}
|
||||
return Card(
|
||||
child: Padding(
|
||||
|
Reference in New Issue
Block a user