Fix dialog in subscription page
This commit is contained in:
parent
caf1e1856a
commit
509e09b7c1
1 changed files with 2 additions and 3 deletions
|
@ -27,6 +27,7 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|||
|
||||
@override
|
||||
void initState() {
|
||||
InAppPurchaseConnection.enablePendingPurchases();
|
||||
_purchaseUpdateSubscription = InAppPurchaseConnection
|
||||
.instance.purchaseUpdatedStream
|
||||
.listen((event) async {
|
||||
|
@ -58,13 +59,11 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|||
FlatButton(
|
||||
child: Text("ok"),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
Navigator.of(context).popUntil((route) => route.isFirst);
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
Navigator.pop(context);
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
|
|
Loading…
Add table
Reference in a new issue