From 722186491307d11bbb2fb644dd68524f8984744a Mon Sep 17 00:00:00 2001 From: dokar3 <68095777+dokar3@users.noreply.github.com> Date: Sun, 30 Jul 2023 10:45:09 +0800 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94e6dfb..c13e206 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Another rich-feature BottomSheet in Jetpack Compose. ``` -### Peek support: +### Peek support ```kotlin BottomSheet( @@ -43,8 +43,14 @@ Another rich-feature BottomSheet in Jetpack Compose. ### Customizable animations ```kotlin - // In some callback + // Animation off + state.expand(animated = false) + + // Default state.expand(animationSpec = spring()) + + // Slow animation + state.expand(animationSpec = tween(durationMillis = 2000)) ```