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

fix: Ensure safe area usage in Changelogs Modal Bottom Sheet (1741) #1772

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

Domenic-MZS
Copy link
Contributor

@Domenic-MZS Domenic-MZS commented Mar 18, 2024

πŸ”§ Fix: Ensure Safe Area Usage in Changelogs Modal Bottom Sheet (1741)

This PR closes #1741.

Overview

The Changelogs Modal Bottom Sheet overlaps with the Notifications Bar (system intrusion) because the Modal Sheet is not constrained by a safe area.

  • Issue: The Safe Area constraints are not correctly applied on the Changelogs Modal Bottom Sheet.
  • Context: The changelogs showed with showModalBottomSheet, are called without the useSafeArea property, causing a visual overlap with the notifications bar, when the modal sheet occupies the whole screen.
  • Related Solutions: No related solutions at first sight. Should be fixed by adding the missing useSafeArea parameter.
  • Impact: By addressing this issue, the visual overlap will no longer occur, making an important improvement to all users readability, enhancing the overall UX/UI experience.

πŸ““ Description

This pull request solves the overlap issue by adding the missing useSafeArea parameter (to true) on the showModalBottomSheet method invocation.

This parameter was officially accepted and added by flutter on 2020~2022 i think.

✍🏼 Changes Made

  • HomeViewModel
    • Add parameter useSafeArea with true

🦯 Testing

  • Update Tests (ToDo - Not Found nor needed i think for now...)
  • Compile/Build code

🐞 with Stable Flutter v3.19.3 and dart 3.3.1)
System: Linux archlinux 6.7.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 x86_64 GNU/Linux

πŸ“‹ Notes & References

πŸ”¬ Reviewers

@BenjaminHalko


πŸ‘Ύ Hi, this is my first Pull Requests over here. Any feedback, changes, or suggestions are welcome! ✌🏼 πŸ–οΈ

This commit addresses issue ReVanced#1741, where the *Changelogs Modal Bottom Sheet*
was overlapping with the *Notifications Bar* (system intrusion).

By adding the `useSafeArea` property set to `true` when invoking `showModalBottomSheet`.
we enhance the user experience and readability by preventing text within the
Changelogs bottom modal sheet from overlapping behind the Notifications Bar.

This change ensures that reading text is now significantly easier and clearer.
@validcube validcube changed the title fix: ensure safe area usage in Changelogs Modal Bottom Sheet (1741) fix: Ensure safe area usage in Changelogs Modal Bottom Sheet (1741) Mar 18, 2024
Copy link
Member

@validcube validcube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ₯ž LGTM!

  • Reviewer note: Limited to no testing done, due to availability issue.

Copy link
Member

@oSumAtrIX oSumAtrIX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome PR ;)

Copy link
Contributor

github-actions bot commented Mar 18, 2024

βš’οΈ Build status

βœ… Succeeded build on ffbe562.

Details: 8325198312!

βš™οΈ Workflow run configuration

  • Flutter cache: true
  • App flavor: release

@validcube validcube linked an issue Mar 20, 2024 that may be closed by this pull request
4 tasks
@validcube validcube merged commit c981cb4 into ReVanced:dev Mar 23, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Mar 23, 2024
## [1.19.4-dev.2](v1.19.4-dev.1...v1.19.4-dev.2) (2024-03-23)

### Bug Fixes

* Ensure safe area usage in Changelogs Modal Bottom Sheet ([#1772](#1772)) ([c981cb4](c981cb4))
github-actions bot pushed a commit that referenced this pull request Apr 5, 2024
# [1.20.0](v1.19.3...v1.20.0) (2024-04-05)

### Bug Fixes

* disable proguard obfuscation ([401646a](401646a))
* Do not crash when selecting an APK from storage ([#1768](#1768)) ([8564c1a](8564c1a))
* Don't translation ReVanced repository ([c265794](c265794))
* Ensure safe area usage in Changelogs Modal Bottom Sheet ([#1772](#1772)) ([c981cb4](c981cb4))
* Pre-releases changelog being shown ([#1767](#1767)) ([add49e1](add49e1))
* Replace Spacer with Expanded to avoid overflow ([#1791](#1791)) ([6f70a07](6f70a07))
* Set text colour on dropdown menu for Custom Value ([966796d](966796d)), closes [#1584](#1584)
* **ui:** Support free-scroll and auto-scroll for the installer logs ([#1736](#1736)) ([#1836](#1836)) ([025ff52](025ff52))

### Features

* Improve language update settings ([#1838](#1838)) ([f9e6ef3](f9e6ef3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Changelog flows into the status bar
3 participants