https://kotlinlang.org logo
Title
f

Filip Wiesner

01/24/2021, 4:38 PM
Hello, is there a way to have scrollable content that is not clipped to the bounds of scrollable area?
My use case is that I have main view and side bar. The sidebar is list (column) of widgets that I want to be able to drag onto the main view.
I know the possible solution is to draw the element in different scope when dragged but that introduces a whole lot of other problems when trying to animate the element for example
j

jim

01/24/2021, 5:34 PM
cc @matvei
m

matvei

01/25/2021, 12:12 PM
Only top-level scroll modifiers/components clip by default (
LazyColumn, Modifier.verticalScroll, Modifier.horizontalScorll
). You can drop down one level and use
Modifier.draggable
or
Modifier.scrollable
or even
Modifier.swipeable
, those doesn't clip by default