maRci002

Results 79 comments of maRci002

It's hard to read your pieces of code, but you can check out the flow: https://github.com/flutter/flutter/issues/119620#issuecomment-1428135797

I think your best bet to log every useful attributes of [`PurchaseDetails`](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails-class.html) inside `_listenToPurchaseUpdated` method. - [purchaseID](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails/purchaseID.html) - [productID](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails/productID.html) - [status](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails/status.html) - [transactionDate](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails/transactionDate.html) - [verificationData](https://pub.dev/documentation/in_app_purchase_platform_interface/latest/in_app_purchase_platform_interface/PurchaseDetails/verificationData.html) You will see there should...

> @huycozy I have tried @maRci002 recommendations and there are no new duplicates on my side. What do you mean by "on my side"? > But the main issue is...

> but out of 10 times round about 3 to 4 times duplicate transactions appear in `SKPaymentQueue.default().transactions` How do you know they are duplicates? What are their status?

I think you should reopen this issue maybe there is a serious bug in https://pub.dev/packages/in_app_purchase plugin. But this is more likely caused by underlying storekit. search this term in google:...

[StatelessWidget.build](https://api.flutter.dev/flutter/widgets/StatelessWidget/build.html) > The framework calls this method when this widget is inserted into the tree in a given [BuildContext](https://api.flutter.dev/flutter/widgets/BuildContext-class.html) and when the dependencies of this widget change (e.g., an [InheritedWidget](https://api.flutter.dev/flutter/widgets/InheritedWidget-class.html)...

> So you are telling me that behavior displayed in video below is okay?... Yes that is okay. However there is still room for optimise your code. Change this: ```dart...

> Was it always like this in flutter or it was caused by one of the PRs ([this one](https://github.com/flutter/flutter/pull/114459) or [that one](https://github.com/flutter/flutter/pull/118004), specifically)? #114459 is one of my favorite changes,...

> Aha, understood, thanks for clarification . Well, I guess in my case I should just go for LayoutBuilder instead of MediaQuery since I don’t want those rebuilds. What do...

I don't like the fact that once a `BuildContext` becomes dependent on an `InheritedWidget`, it stays so until the end of its lifecycle. For instance, when `ElevatedButton`'s `onTap` creates a...