I have a LazyColumn holding some Items. I listen a Flow from Room and everything works great when reverseLayout = true
. When new Item get inserted into the database, the LazyColumn scrolls to the bottom and shows last Item just fine. But reverseLayout = true
inverts the headers too. So I disabled it with reverseLayout = false
. This does not work in that when Item get inserted, it is shown on the list but the list does not get scrolled to show the bottom item. I have to manually scroll.
How can I scroll to the bottom Item when the LazyColumn get recomposed on items
change?
I don't think I need to put the code since the problem happens with any use of LazyColumn but if that is important let me know and I can redact the code and post them!