I’m using Lazycolumn inside ModalBottomSheet. But ...
# compose
d
I’m using Lazycolumn inside ModalBottomSheet. But scrolling is not working smoothly. Sometimes scrolling lazy column closing my bottomsheet.
a
I guess you use
ModalBottomSheet
with the param-value set to default
sheetGesturesEnabled = true
(by not using it in your call), which activates closing the
ModelBottomSheet
by hitting the top of the
LazyColumn
, continuing the swipe, which then closes the
ModalBottomSheet
? If so, try to set that parameter to
false
. Also, remember to test the app in the
release
-buildtype to get representative Jetpack-Compose-performance, since the debuggable version has a visible effect on scroll performance due to inspectability provided for tools like Layout Inspector. If that does not fix the unsmoothiness, check for unnecessary recompositions with the Layout Inspector during scrolling.
d
Thank you. But this param
sheetGesturesEnabled
I cant find in kmp.
101 Views