I am replacing `ScrollableColumn` (which is now de...
# compose
d
I am replacing 
ScrollableColumn
 (which is now deprecated) with
Column(modifier = Modifier.verticalScroll(rememberScrollState())
but 
Column
 doesn’t have the 
contentPadding
 parameter, so when using 
Scaffold
 with a 
BottomBar
 , the bottom part of the column gets covered by the bottombar. Any solution?
👍 2
a
how about adding a padding on the root content of column?
a
just add
Copy code
.padding(contentPadding)
after
verticalScroll
modifier
d
@Andrey Kulikov thanks, it works!
@Andrey Kulikov one issue I am still finding, is that the screen scrolls only if I touch on the area with text. If I touch on an area with no text, it doesn’t scroll. Is this normal?
a
try to put Modifier.fillMaxWidth() on Column or Text itself
both Column and ScrollableColumn wraps the content by default. so the text is small and the same width is the width of the column and scrollable area
c
sorry to hijack this but what’s the difference between
ScrollableColumn
and
Column(modifier = Modifier.verticalScroll(...))
?
d
@Andrey Kulikov great, it works!
@Cyril Find
ScrollableColumn
is deprecated
c
oh ok that’s a good reason 😆
I’m still an alpha10 old timer, forgive me 👴
d
@Andrey Kulikov I have seen that
contentPadding
is still a parameter of
LazyColumn
. Is it also going to be removed from there or is there a meaningful reason to keep it there?
a
no, it has to be there. when you add scrolling as a modifier you can add padding before or after scrolling modifier to configure how it is applied. when you have a component like LazyColumn or ScrollableColumn you can’t add a modifier after the inner modifiers applied as part of the component internal logic. so they have to have such parameter
👍 3