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 55f5886 commit ed9bfbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,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 +258,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 ed9bfbf

Please sign in to comment.