From 59012b8faa0f324ee492ac1c371d2cfe878a734b Mon Sep 17 00:00:00 2001 From: Alex Vanyo Date: Mon, 16 Sep 2024 11:10:29 -0700 Subject: [PATCH] Fix insets-ui migration step --- docs/insets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/insets.md b/docs/insets.md index ba201aff4..a06b195f6 100644 --- a/docs/insets.md +++ b/docs/insets.md @@ -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.