Skip to main content
Question

Dismiss button not displayed even though "displayCloseButton" is set to true. Why?

  • December 11, 2025
  • 1 reply
  • 43 views

Forum|alt.badge.img+6

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!

This post has been closed for comments

1 reply

alejandra-wetsch
RevenueCat Staff
Forum|alt.badge.img+6

Hey ​@philip-johnson-4e5f09

Thank you for reaching out and providing the screenshots of what you’re seeing, along with your code snippets!

After checking some internal logs, I see that you’re using version 9.5.0 of the Flutter SDK, which is a few months old. Would you mind upgrading to the latest version of the SDK (9.10.0) and retrying?

Please let me know how that goes!

Thanks,