From 6cd54b301f4d6a07c9f4a53048084af09b392674 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 20 Sep 2024 13:18:42 +0100 Subject: [PATCH] Mark PaddingValues.only with `@Stable` --- .../src/commonMain/kotlin/ui/foundation/layout/PaddingValues.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/shared/ui-foundation/src/commonMain/kotlin/ui/foundation/layout/PaddingValues.kt b/app/shared/ui-foundation/src/commonMain/kotlin/ui/foundation/layout/PaddingValues.kt index 6cc0dd9d31..36ead1d2da 100644 --- a/app/shared/ui-foundation/src/commonMain/kotlin/ui/foundation/layout/PaddingValues.kt +++ b/app/shared/ui-foundation/src/commonMain/kotlin/ui/foundation/layout/PaddingValues.kt @@ -12,6 +12,7 @@ package me.him188.ani.app.ui.foundation.layout import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.only +import androidx.compose.runtime.Stable import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.LayoutDirection import androidx.compose.ui.unit.dp @@ -19,6 +20,7 @@ import androidx.compose.ui.unit.dp /** * @see WindowInsets.only */ +@Stable fun PaddingValues.only(sides: PaddingValuesSides): PaddingValues = OnlyPaddingValues(this, sides) private class OnlyPaddingValues(