The paywall in my Flutter app is being flagged as non-compliant by Google Play store because it does not conform to this policy:
Unclear or invisible dismiss button: Ensure that the dismiss button in your app is clearly visible and the size and color of the dismiss button is easy for users to find. If users are not able to access any content of your app without paid subscriptions, make clear indication to the user that a subscription is required to use the app.
Here is my paywall, which was constructed with the RevenueCat paywall editor:

Here is the code I use to display it, which has “displayCloseButton” set to true:
@override
Widget build(BuildContext context, WidgetRef ref) {
return GgcScaffold(
body: PaywallView(
offering: users.currentUserOffering,
displayCloseButton: true,
onPurchaseCompleted:
(CustomerInfo customerInfo, StoreTransaction storeTransaction) {
ref.invalidate(revenueCatIsEntitledProvider);
},
onPurchaseError: (PurchasesError error) {
// print('Purchase error: $error');
},
onRestoreCompleted: (CustomerInfo customerInfo) {
ref.invalidate(revenueCatIsEntitledProvider);
context.goNamed(AppRoute.home.name);
},
onRestoreError: (PurchasesError error) {
// print('Restore error: $error');
},
onDismiss: () {
ref.invalidate(revenueCatIsEntitledProvider);
context.goNamed(AppRoute.home.name);
GlobalSnackBar.show(
'Note: you must subscribe to access any features of GeoGardenClub.');
},
),
);
Why is the close button not being displayed despite the displayCloseButton parameter being set to true?
Thank you for your help!
