In-app purchase

This commit is contained in:
Hillel Coren 2022-07-13 15:00:27 +03:00
parent e9ac07f2ee
commit cb39924f19
1 changed files with 3 additions and 10 deletions

View File

@ -150,16 +150,7 @@ class _UpgradeDialogState extends State<UpgradeDialog> {
); );
} }
return MaterialApp( return Stack(children: stack);
home: Scaffold(
appBar: AppBar(
title: const Text('IAP Example'),
),
body: Stack(
children: stack,
),
),
);
} }
Card _buildConnectionCheckTile() { Card _buildConnectionCheckTile() {
@ -310,6 +301,8 @@ class _UpgradeDialogState extends State<UpgradeDialog> {
_purchases.add(purchaseDetails); _purchases.add(purchaseDetails);
_purchasePending = false; _purchasePending = false;
}); });
print('## PLAN UNLOCKED');
} }
void handleError(IAPError error) { void handleError(IAPError error) {