What would be the idiomatic way to autoscroll a scrollable when it's parent container padding change?
d
Dmitrii Smirnov
01/19/2022, 5:51 PM
well, generally, idiomatic way is to draw UI like a function of state, instead of doing something by indirect cause
t
Tolriq
01/19/2022, 5:53 PM
Of course, but unfortunately in this case this is not possible if you have a lazycolumn scrolled to the bottom and padding change in the parents, the bottom of the lazycolumn is now hidden and do not stay on screen.
d
Dmitrii Smirnov
01/19/2022, 6:17 PM
Copy code
val state: LazyListState = rememberLazyListState()
might be helpful if you want to know if column is scrolled to bottom
Dmitrii Smirnov
01/19/2022, 6:18 PM
but I can't get how scrolling lazycolumn is connected with parent's paddings
t
Tolriq
01/19/2022, 6:25 PM
It's not that why I asked for an idiomatic way to achieve that. There's a lot's of way to do that, but all awful.