-
Notifications
You must be signed in to change notification settings - Fork 104
Migrate window insets padding modifiers from composed API to InsetsPaddingModifierNode
#2572
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
base: jb-main
Are you sure you want to change the base?
Conversation
…ddingModifierNode
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/node/RootNodeOwner.skiko.kt
Outdated
Show resolved
Hide resolved
…otNodeOwner.skiko.kt Co-authored-by: Andrei Salavei <[email protected]>
...ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/layout/WindowInsetsPaddingTest.kt
Show resolved
Hide resolved
ASalavei
left a comment
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.
Please update release note - the PR not only fixes things, but also adds support for the new API
…d to compose scene
...se/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/keyboard/KeyboardInsetsTest.kt
Show resolved
Hide resolved
MatkovIvan
left a comment
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.
API/features for 1.10 is already frozen. Blocking until creating a release branch
| assertEquals(expected = frame?.bottom, actual = screenSize.height - keyboardHeight) | ||
| } | ||
|
|
||
|
|
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.
| } | ||
|
|
||
| @OptIn(InternalComposeUiApi::class) | ||
| fun DelegatableNode.requireWindowInsets(): PlatformWindowInsets { |
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.
Why do we need it as public (and stable) API?
|
|
||
| import androidx.compose.runtime.Stable | ||
| import androidx.compose.runtime.getValue | ||
| import androidx.compose.runtime.setValue |
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.
Changes in common. Do we have a task to upstream diff in this file?
Migrates window insets padding modifiers from composed API to
InsetsPaddingModifierNode. ProvidesPlatformWindowInsetsthrough the root node modifier to child nodes required for creating window insets padding modifiers.Fixes CMP-8953 Migrate non-Android Insets Padding Modifiers away from "Composed" API to "Modifier.Node"
Fixes CMP-8998 Migrate insets modifiers to
InsetsPaddingModifierElementFixes CMP-9201 ModalBottomSheet padding interaction on iOS in CMP 1.10.0-alpha03
Testing
Adds test of recomposition behavior to
WindowInsetsPaddingTestsTested by existing tests
Release Notes
Fixes - iOS
Features - Multiple Platforms
InsetsPaddingModifierNode