Initialize the progress dialog
This commit is contained in:
parent
e374cf126f
commit
5918c3396a
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,8 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|||
void initState() {
|
||||
BillingService.instance.setIsOnSubscriptionPage(true);
|
||||
|
||||
_dialog = createProgressDialog(context, "please wait...");
|
||||
|
||||
_purchaseUpdateSubscription =
|
||||
FlutterInappPurchase.purchaseUpdated.listen((item) async {
|
||||
await _dialog.show();
|
||||
|
@ -121,7 +123,6 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|||
if (isActive) {
|
||||
return;
|
||||
}
|
||||
_dialog = createProgressDialog(context, "please wait...");
|
||||
await _dialog.show();
|
||||
final items =
|
||||
await FlutterInappPurchase.instance.getProducts([productID]);
|
||||
|
|
Loading…
Add table
Reference in a new issue