I have a LazyColumn Inside a Dialog , inside a Simple Column which also contains a row of buttons (Cancel & Set) at the end of the dialog , Previously I was using weight(1f) modifier on the LazyColumn to occupy most of the height of the dialog then giving remaining space to the row of buttons but the problem is weight modifier causes the list to expand full height even if its empty and if I don't set weight modifier then When the contents of the LazyColumn exceed LazyColumn starts occupying full height of the column and the row of buttons cannot be found even upon scrolling.
I want to make it so that my row of buttons is aligned to the bottom of the dialog and LazyColumn takes as much height as its contents without taking space of row of buttons.
Here's my code
Column{
LazyColumn(modifier = Modifier.weight(1f)){
items(myItems){ item->
DisplayItem(item)
}
}
Row{
Button{}
Button{}
}
}