Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SafeArea in sample in paywall.dart #1063

Merged
merged 1 commit into from
May 6, 2024
Merged

Remove SafeArea in sample in paywall.dart #1063

merged 1 commit into from
May 6, 2024

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented May 6, 2024

The SafeArea was causing the X close button to be pushed down

Screenshot 2024-04-26 at 11 05 55

It looks like the SafeArea is adding some padding causing the StatusBarSpacer in purchases-android to add the wrong Spacer

@Composable
fun StatusBarSpacer() {
    return Spacer(
        Modifier.windowInsetsTopHeight(
            WindowInsets.statusBars,
        ),
    )
}

It doesn't make sense we wrap the PaywallView in a SafeArea since it should fill up the Activity that contains it so I removed it from the purchase tester to represent a more realistic scenario.

@vegaro vegaro added the refactor label May 6, 2024
@vegaro vegaro requested a review from tonidero May 6, 2024 13:26
@RevenueCat-Danger-Bot
Copy link

1 Message
📖 Size increase: 0.00 KB

Generated by 🚫 Danger

@vegaro vegaro enabled auto-merge (squash) May 6, 2024 13:28
@vegaro vegaro merged commit 63442d4 into main May 6, 2024
8 checks passed
@vegaro vegaro deleted the remove-safearea branch May 6, 2024 13:34
tonidero added a commit that referenced this pull request May 16, 2024
**This is an automatic release.**

### Bugfixes
* [EXTERNAL] fix: call presentPaywallIfNeeded when needed (#1066) by
@danjocha (#1069) via Cesar de la Vega (@vegaro)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.6.2 (#1067) via
RevenueCat Git Bot (@RCGitBot)
### Other Changes
* Remove SafeArea in sample in paywall.dart (#1063) via Cesar de la Vega
(@vegaro)
* Migration to applying Gradle plugins with the declarative plugins
block in sample (#1062) via Cesar de la Vega (@vegaro)

---------

Co-authored-by: Toni Rico <[email protected]>
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
The `SafeArea` was causing the X close button to be pushed down

<img width="246" alt="Screenshot 2024-04-26 at 11 05 55"
src="https://github.com/RevenueCat/purchases-flutter/assets/664544/da8712cc-3828-420a-925e-bd000f355851">

It looks like the `SafeArea` is adding some padding causing the
`StatusBarSpacer` in purchases-android to add the wrong Spacer

```
@composable
fun StatusBarSpacer() {
    return Spacer(
        Modifier.windowInsetsTopHeight(
            WindowInsets.statusBars,
        ),
    )
}
```

It doesn't make sense we wrap the `PaywallView` in a `SafeArea` since it
should fill up the Activity that contains it so I removed it from the
purchase tester to represent a more realistic scenario.
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
**This is an automatic release.**

### Bugfixes
* [EXTERNAL] fix: call presentPaywallIfNeeded when needed (RevenueCat#1066) by
@danjocha (RevenueCat#1069) via Cesar de la Vega (@vegaro)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.6.2 (RevenueCat#1067) via
RevenueCat Git Bot (@RCGitBot)
### Other Changes
* Remove SafeArea in sample in paywall.dart (RevenueCat#1063) via Cesar de la Vega
(@vegaro)
* Migration to applying Gradle plugins with the declarative plugins
block in sample (RevenueCat#1062) via Cesar de la Vega (@vegaro)

---------

Co-authored-by: Toni Rico <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants