Code cleanup
This commit is contained in:
parent
6a1d359d2d
commit
31091764ec
|
|
@ -210,9 +210,6 @@ class _UpgradeDialogState extends State<UpgradeDialog> {
|
||||||
final store = StoreProvider.of<AppState>(context);
|
final store = StoreProvider.of<AppState>(context);
|
||||||
final account = store.state.account;
|
final account = store.state.account;
|
||||||
|
|
||||||
// This loading previous purchases code is just a demo. Please do not use this as it is.
|
|
||||||
// In your app you should always verify the purchase data using the `verificationData` inside the [PurchaseDetails] object before trusting it.
|
|
||||||
// We recommend that you use your own server to verify the purchase data.
|
|
||||||
final Map<String, PurchaseDetails> purchases =
|
final Map<String, PurchaseDetails> purchases =
|
||||||
Map<String, PurchaseDetails>.fromEntries(
|
Map<String, PurchaseDetails>.fromEntries(
|
||||||
_purchases.map((PurchaseDetails purchase) {
|
_purchases.map((PurchaseDetails purchase) {
|
||||||
|
|
@ -235,7 +232,6 @@ class _UpgradeDialogState extends State<UpgradeDialog> {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
backgroundColor: Colors.green[800],
|
backgroundColor: Colors.green[800],
|
||||||
// TODO(darrenaustin): Migrate to new API once it lands in stable: https://github.com/flutter/flutter/issues/105724
|
|
||||||
// ignore: deprecated_member_use
|
// ignore: deprecated_member_use
|
||||||
primary: Colors.white,
|
primary: Colors.white,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue