summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-10-22 11:28:13 +0200
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-10-22 15:32:56 +0200
commitea18b6d174ffbbded5d6755985a59cfdf3a30380 (patch)
treeda7659d90d85f6749ce756d5b178f9c98329d586 /api/api_test.go
parent669d20abf9da3ea7ecb5977f08ae860d05126f72 (diff)
Introduce Modifier.drawInContainer() and .drawInOverlay() (1/2)
This CL introduces 3 new modifiers: - Modifier.container() to define a container in which composables can be drawn. - Modifier.drawInContainer() to conditionally draw a composable in a container. - Modifier.drawInOverlay() to draw a composable in an Android overlay, i.e. above everything. Most of the logic in DrawInContainer.kt was forked from AndroidX implementation of RenderInTransitionOverlayNodeElement.kt [1]. I decided to change the name "overlay" there to "container" to avoid confusing them with Android overlays or even SceneTransitionLayout overlays. The drawInOverlay() modifier is currently a @Composable factory because of b/374907972. [1] http://shortn/_hUx8cyTKAw Bug: 373799480 Test: atest DrawInContainerScreenshotTest Flag: com.android.systemui.scene_container Change-Id: I415c6079e8ac8cf28804ca0fef350dc5d66b3609
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions