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";
|
_error = "Error connecting to store";
|
||||||
});
|
});
|
||||||
} else {
|
} 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);
|
final ProductDetailsResponse response = await InAppPurchaseConnection.instance.queryProductDetails(_kIds);
|
||||||
if (!response.notFoundIDs.isEmpty) {
|
if (!response.notFoundIDs.isEmpty) {
|
||||||
Logger.d("Products not found: ${response.notFoundIDs}");
|
Logger.d("Products not found: ${response.notFoundIDs}");
|
||||||
|
@ -12,12 +12,12 @@ class ProductPurchase extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
String period = "/ ";
|
String period = "/ ";
|
||||||
Color priceColor;
|
Color priceColor;
|
||||||
if (product.id.contains("month")) {
|
if (product.id.contains("year")) {
|
||||||
period += "month";
|
|
||||||
priceColor = Colors.deepOrangeAccent;
|
|
||||||
} else {
|
|
||||||
period += "year";
|
period += "year";
|
||||||
priceColor = Colors.amber;
|
priceColor = Colors.amber;
|
||||||
|
} else {
|
||||||
|
period += "month";
|
||||||
|
priceColor = Colors.deepOrangeAccent;
|
||||||
}
|
}
|
||||||
return Card(
|
return Card(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
Reference in New Issue
Block a user