Skip to content

Commit

Permalink
Fixes for compose 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
soulcramer committed Oct 2, 2024
1 parent 2662716 commit 8886acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.selection.selectable
import androidx.compose.foundation.selection.selectableGroup
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.NavigationBarDefaults
Expand Down Expand Up @@ -73,6 +72,7 @@ import com.adevinta.spark.icons.SearchToOutline
import com.adevinta.spark.icons.SparkAnimatedIcons
import com.adevinta.spark.tokens.disabled
import com.adevinta.spark.tokens.highlight
import com.adevinta.spark.tokens.ripple
import kotlin.math.roundToInt

private const val IconsExampleSourceUrl = "$SampleSourceUrl/IconsSamples.kt"
Expand Down Expand Up @@ -257,7 +257,7 @@ public fun RowScope.NavigationBarItem(
// The color of the Ripple should always the selected color, as we want to show the color
// before the item is considered selected, and hence before the new contentColor is
// provided by BottomNavigationTransition.
val ripple = rememberRipple(bounded = false, color = SparkTheme.colors.neutral)
val ripple = ripple(bounded = false, color = SparkTheme.colors.neutral)

Box(
modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public fun IconsScreen(
},
)
.padding(8.dp)
.animateItemPlacement(),
.animateItem(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(4.dp),
) {
Expand Down

0 comments on commit 8886acc

Please sign in to comment.