diff --git a/lib/ui/app/upgrade_dialog.dart b/lib/ui/app/upgrade_dialog.dart index f079d0cfe..ec4f41e24 100644 --- a/lib/ui/app/upgrade_dialog.dart +++ b/lib/ui/app/upgrade_dialog.dart @@ -27,6 +27,7 @@ class UpgradeDialog extends StatefulWidget { } class _UpgradeDialogState extends State { + final _scrollController = ScrollController(); final InAppPurchase _inAppPurchase = InAppPurchase.instance; StreamSubscription> _subscription; List _products = []; @@ -115,6 +116,7 @@ class _UpgradeDialogState extends State { iosPlatformAddition.setDelegate(null); } _subscription.cancel(); + _scrollController.dispose(); super.dispose(); } @@ -124,18 +126,23 @@ class _UpgradeDialogState extends State { final List stack = []; if (_queryProductError == null) { stack.add( - ListView( - children: [ - if (Platform.isIOS) - Padding( - padding: const EdgeInsets.only(bottom: 16), - child: Text( - 'Payment will be charged to iTunes Account at confirmation of purchase. Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period. Account will be charged for renewal within 24-hours prior to the end of the current period, and identify the cost of the renewal. Subscriptions may be managed by the user and auto-renewal may be turned off by going to the user\'s Account Settings after purchase.', - style: TextStyle(fontSize: 12, color: Colors.grey), + Scrollbar( + thumbVisibility: true, + controller: _scrollController, + child: ListView( + controller: _scrollController, + children: [ + if (Platform.isIOS) + Padding( + padding: const EdgeInsets.only(bottom: 16), + child: Text( + 'Payment will be charged to iTunes Account at confirmation of purchase. Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period. Account will be charged for renewal within 24-hours prior to the end of the current period, and identify the cost of the renewal. Subscriptions may be managed by the user and auto-renewal may be turned off by going to the user\'s Account Settings after purchase.', + style: TextStyle(fontSize: 12, color: Colors.grey), + ), ), - ), - _buildProductList(), - ], + _buildProductList(), + ], + ), ), ); } else {