Update subscribtions

This commit is contained in:
estevez-dev 2019-08-26 19:42:26 +03:00
parent 594bce0b8d
commit 67e885e76a
2 changed files with 5 additions and 5 deletions

View File

@ -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}");

View File

@ -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(