|
@@ -27,6 +27,7 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|
|
|
|
|
@override
|
|
@override
|
|
void initState() {
|
|
void initState() {
|
|
|
|
+ InAppPurchaseConnection.enablePendingPurchases();
|
|
_purchaseUpdateSubscription = InAppPurchaseConnection
|
|
_purchaseUpdateSubscription = InAppPurchaseConnection
|
|
.instance.purchaseUpdatedStream
|
|
.instance.purchaseUpdatedStream
|
|
.listen((event) async {
|
|
.listen((event) async {
|
|
@@ -58,13 +59,11 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
|
FlatButton(
|
|
FlatButton(
|
|
child: Text("ok"),
|
|
child: Text("ok"),
|
|
onPressed: () {
|
|
onPressed: () {
|
|
- Navigator.of(context).pop();
|
|
|
|
|
|
+ Navigator.of(context).popUntil((route) => route.isFirst);
|
|
},
|
|
},
|
|
),
|
|
),
|
|
],
|
|
],
|
|
);
|
|
);
|
|
- Navigator.pop(context);
|
|
|
|
-
|
|
|
|
showDialog(
|
|
showDialog(
|
|
context: context,
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
builder: (BuildContext context) {
|