In-app purchase
This commit is contained in:
parent
e9ac07f2ee
commit
cb39924f19
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue