purchases_flutter: ^6.29.0
purchases_ui_flutter: ^6.29.0
platform :ios, '12.0' (Podfile, pod install issues if trying to raise to ‘15.0’)
Too much space above packages, how can I get rid of it? Seems to be some padding?
Template 5 (was forced to set title + 1 feature):
Code:
void presentPaywallFooter(BuildContext context) async {
final offerings = await Purchases.getOfferings();
final offering = offerings.current;
showModalBottomSheet(
context: context,
builder: (BuildContext context) {
return PaywallFooterView(
offering: offering,
onPurchaseStarted: (Package rcPackage) {
debugPrint('Purchase started for package: ${rcPackage.identifier}');
},
onPurchaseCompleted: (CustomerInfo customerInfo, StoreTransaction storeTransaction) {
debugPrint('Purchase completed: ${storeTransaction.transactionIdentifier}');
},
onPurchaseError: (PurchasesError error) {
debugPrint('Purchase error: ${error.message}');
},
onRestoreCompleted: (CustomerInfo customerInfo) {
debugPrint('Restore completed');
},
onRestoreError: (PurchasesError error) {
debugPrint('Restore error: ${error.message}');
},
onDismiss: () {
Navigator.pop(context);
},
contentCreator: (double bottomPadding) {
//return SizedBox.shrink(); // empty box, could be content above the paywall
// takes same space
return Text('Custom content above the paywall, bottomPadding: $bottomPadding');
},
);
},
);
}
Appearance:
Too much space above packages, how can I get rid of it? Seems to be some padding?
BottomPadding is just 20px