Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
commandiron authored Oct 31, 2022
1 parent b82f015 commit 95462ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Box(

```kotlin
// Simply create shared state and pass it to AnimatableCard and AnimatableText
// Simply create card state and text state
val animatableCardState = rememberAnimatableCardState(
initialSize = DpSize(width = 50.dp, height = 25.dp),
targetSize = DpSize(width = 300.dp, height = 150.dp),
Expand All @@ -355,6 +355,7 @@ val animatableTextState = rememberAnimatableTextState(
targetFontSize = 36.sp,
toTargetFontSizeAnimationSpec = spring(Spring.DampingRatioHighBouncy, Spring.StiffnessVeryLow)
)
// Merge the states you created into sharedState and pass it to AnimatableCard and AnimatableText
val sharedAnimatableState = rememberSharedAnimatableState(
listOf(
animatableCardState,
Expand Down

0 comments on commit 95462ac

Please sign in to comment.