Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ismai117 authored Feb 22, 2024
1 parent 56e41c2 commit c387788
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,33 @@ val animationState by animateKottieCompositionAsState(
composition = composition,
isPlaying = playing
)

MaterialTheme {

Column(
modifier = modifier.fillMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {

KottieAnimation(
composition = composition,
progress = { animationState.progress },
modifier = modifier
.size(300.dp)
)

Button(
onClick = {
plaing = true
}
){
Text("Play")
}

}
}

```

## Adjusting Speed
Expand Down

0 comments on commit c387788

Please sign in to comment.