Skip to content

Commit

Permalink
Mark PaddingValues.only with @Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Sep 20, 2024
1 parent d9b8a98 commit 6cd54b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ 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

/**
* @see WindowInsets.only
*/
@Stable
fun PaddingValues.only(sides: PaddingValuesSides): PaddingValues = OnlyPaddingValues(this, sides)

private class OnlyPaddingValues(
Expand Down

0 comments on commit 6cd54b3

Please sign in to comment.