Join Slack
Powered by
Hi, I have a question, as provided in the docs - <...
# android
p
Priyatanu Dey
11/14/2023, 8:21 AM
Hi, I have a question, as provided in the docs -
https://developer.android.com/reference/kotlin/androidx/compose/material/BottomSheetState#isExpanded()
why isexpanded and iscollapsed defined in bottom sheet. should not just one variable be sufficient ?
not kotlin but kotlin colored
4
z
zsmb
11/14/2023, 8:26 AM
It's just for convenience, they both use the same state under the hood
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]in/androidx/compose/material/BottomSheetScaffold.kt;l=174-184
✅ 1
p
Pablichjenkov
11/14/2023, 8:31 AM
for future compose questions and to avoid the "not kotlin" tag 😀 you can ask in
#compose
and or
#compose-android
✅ 1
p
Priyatanu Dey
11/14/2023, 8:34 AM
Thank you 😄
👍 1
3
Views
Open in Slack
Previous
Next