Skip to content

Commit

Permalink
Merge pull request #1791 from google/av/insets-ui-migration-update
Browse files Browse the repository at this point in the history
Fix insets-ui migration step
  • Loading branch information
alexvanyo authored Sep 17, 2024
2 parents 9c662d6 + 59012b8 commit da21921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/insets.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ If you are using insets for IME support, you also still need to ensure that the
1. Replace padding modifiers with `androidx.compose.foundation` equivalents. If using `additionalPadding` or only applying the insets to certain sides, use the corresponding [`WindowInsets.add`](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#(androidx.compose.foundation.layout.WindowInsets).add(androidx.compose.foundation.layout.WindowInsets)) and [`WindowInsets.only`](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#(androidx.compose.foundation.layout.WindowInsets).only(androidx.compose.foundation.layout.WindowInsetsSides)) extensions.
1. Replace `rememberInsetsPaddingValues` with the equivalent `WindowInsets.asPaddingValues`.
1. Replace direct calculations from `LocalWindowInsets.current` with calculations on `WindowInsets`.
1. Continue using the non-deprecated [`insets-ui`](#inset-aware-layouts-insets-ui) for now.
1. Migrate from using `insets-ui` components to the [built-in support](https://developer.android.com/develop/ui/compose/layouts/insets#material3-components) in Material components.

For reference, consult the [Migration table](#migration-table) below.

Expand Down

0 comments on commit da21921

Please sign in to comment.