Added holdings group to LazyColumn so that they also get scrolled (and don't stick to the top)

This commit is contained in:
dankito 2024-09-12 11:07:55 +02:00
parent 673ca08974
commit c80b4389aa
1 changed files with 23 additions and 21 deletions

View File

@ -43,7 +43,9 @@ fun GroupedTransactionsListItems(
val showColoredAmounts by DI.uiSettings.showColoredAmounts.collectAsState()
LazyColumn(modifier, contentPadding = PaddingValues(bottom = 12.dp)) { // padding bottom = add the space the FAB sticks into the content area (= 26 - the 16 we add at the bottom of the expenses line)
if (holdingsToDisplay.isNotEmpty()) {
items(1) {
Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) {
Text(
text = "Depotwerte",
@ -69,8 +71,8 @@ fun GroupedTransactionsListItems(
}
}
}
}
LazyColumn(modifier, contentPadding = PaddingValues(bottom = 12.dp)) { // padding bottom = add the space the FAB sticks into the content area (= 26 - the 16 we add at the bottom of the expenses line)
items(groupedByDate.keys.sortedDescending()) { groupingDate ->
Column(Modifier.fillMaxWidth()) {
Text(