Skip to content

Conversation

@svastven
Copy link

@svastven svastven commented Nov 13, 2025

Migrates window insets padding modifiers from composed API to InsetsPaddingModifierNode. Provides PlatformWindowInsets through 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 InsetsPaddingModifierElement
Fixes CMP-9201 ModalBottomSheet padding interaction on iOS in CMP 1.10.0-alpha03

Testing

Adds test of recomposition behavior to WindowInsetsPaddingTests
Tested by existing tests

Release Notes

Fixes - iOS

  • Fix incorrectly consumed insets in ModalBottomSheet

Features - Multiple Platforms

  • Migrate window insets padding modifiers from composed API to InsetsPaddingModifierNode

Copy link

@ASalavei ASalavei left a 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

Copy link
Member

@MatkovIvan MatkovIvan left a 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)
}


Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

}

@OptIn(InternalComposeUiApi::class)
fun DelegatableNode.requireWindowInsets(): PlatformWindowInsets {
Copy link
Member

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
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants