Status Update
Comments
ra...@google.com <ra...@google.com>
se...@google.com <se...@google.com> #2
This is working as intended. There is currently not a good way to inherit an applications system decor flags and update appropriately, so we leaned towards the guideline preferred method for dialogs which is an edge to edge implementation. Down the road we would like to split the component into a standalone composeable and a dialog so a user can then provide their own decorated dialog.
se...@google.com <se...@google.com>
se...@google.com <se...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: Jose Figueroa <
Link:
[Material3][ModalBottomSheet] Update inset handling to move modalbottomsheet content out of status bars
Expand for full commit details
[Material3][ModalBottomSheet] Update inset handling to move modalbottomsheet content out of status bars
This makes content more visible and interactable, per material spec
RelNote: "ModalBottomSheet content now moves content away from status bar."
Bug: 336553431
Bug: 321877275
Bug: 336962418
Bug: 342093067
Test: Manual testing
Change-Id: I5114c66808d155f5db97908520bad2efd93be08e
Files:
- M
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/ModalBottomSheet.kt
Hash: 8e198d739211999723660d6394ba6274730f564a
Date: Tue Oct 01 11:59:21 2024
se...@google.com <se...@google.com> #4
ModalBottomSheet will continue to be drawn under the status bar per design but now has inset behavior to move content out from under the status bar when it is drawn below it, this should allow all content to be visible and accessible.
Description
Jetpack Compose version: 1.3.0-beta01
Jetpack Compose component(s) used: material3
Android Studio Build: Jellyfish
Kotlin version: 1.9.0
Steps to Reproduce or Code Sample to Reproduce:
When using the bottom sheet with edge to edge mode, I can easily apply a
padding
modifier to avoid overlapping with the top status bar. However, in my current project I cannot (yet) enable edge to edge mode. Without that, the bottom sheet always overlaps with the status bar.