-
Notifications
You must be signed in to change notification settings - Fork 26
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: scaffold window insets [WPB-4683] #2218
fix: scaffold window insets [WPB-4683] #2218
Conversation
APKs built during tests are available here. Scroll down to Artifacts! |
Build 701 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 742 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 759 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 765 succeeded. The build produced the following APK's: |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 766 succeeded. The build produced the following APK's: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise, it looks good to me.
I can't run locally at the moment.
I'd just keep an eye on things regarding the automatic status bar padding. Maybe that's something we don't want when zooming into an image for example. Not sure how it behaves there now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small question
app/src/main/kotlin/com/wire/android/ui/common/scaffold/WireScaffold.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/common/scaffold/WireScaffold.kt
Outdated
Show resolved
Hide resolved
app/src/main/kotlin/com/wire/android/ui/home/conversations/ConversationScreen.kt
Show resolved
Hide resolved
...n/kotlin/com/wire/android/ui/home/messagecomposer/state/EnabledMessageComposerStateHolder.kt
Outdated
Show resolved
Hide resolved
Build 799 failed. |
APKs built during tests are available here. Scroll down to Artifacts! |
Build 808 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Adapter our UI system to use WindowInsets https://developer.android.com/jetpack/compose/layouts/insets
Issues
Causes (Optional)
Scaffold
in Compose doesn't handle system UI insets and IME (Input Method Editor) paddings dynamically. This limitation causes UI components to overlap with system UI elements, leading to suboptimal user experiences, especially when the soft keyboard is active.Solutions
WireScaffold
component, an enhanced scaffold tailored for dynamic handling of system UI insets and IME paddings.WireScaffold
applies system UI insets to elements such astopBar
andbottomBar
, preventing overlaps with status and navigation bars.imePadding
for the scaffold to adjust dynamically when the soft keyboard is visible.Modifier
system,WireScaffold
ensures consistent padding behaviors across different UI components.WireScaffold
still allows developers to fine-tune or override the settings, offering design flexibility.WireScaffold
or in ConversationScreenDevelopers are recommended to adopt the
WireScaffold
for relevant UI components and conduct extensive testing to confirm its effectiveness across devices and OS versions.Dependencies (Optional)
If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.