Added holdings group to LazyColumn so that they also get scrolled (and don't stick to the top)
This commit is contained in:
parent
673ca08974
commit
c80b4389aa
|
@ -43,34 +43,36 @@ fun GroupedTransactionsListItems(
|
||||||
val showColoredAmounts by DI.uiSettings.showColoredAmounts.collectAsState()
|
val showColoredAmounts by DI.uiSettings.showColoredAmounts.collectAsState()
|
||||||
|
|
||||||
|
|
||||||
if (holdingsToDisplay.isNotEmpty()) {
|
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)
|
||||||
Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) {
|
if (holdingsToDisplay.isNotEmpty()) {
|
||||||
Text(
|
items(1) {
|
||||||
text = "Depotwerte",
|
Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) {
|
||||||
fontSize = 16.sp,
|
Text(
|
||||||
fontWeight = FontWeight.SemiBold,
|
text = "Depotwerte",
|
||||||
modifier = Modifier.padding(bottom = 2.dp),
|
fontSize = 16.sp,
|
||||||
)
|
fontWeight = FontWeight.SemiBold,
|
||||||
|
modifier = Modifier.padding(bottom = 2.dp),
|
||||||
|
)
|
||||||
|
|
||||||
Text("Bitte beachten: Der Abruf der Depotwerte ist sehr experimentell. Wir haben nur seitenweise Spezifikation und am Ende ein kleines Beispiel, " +
|
Text("Bitte beachten: Der Abruf der Depotwerte ist sehr experimentell. Wir haben nur seitenweise Spezifikation und am Ende ein kleines Beispiel, " +
|
||||||
"welches sich selbst nicht an die Spezifikation hält, und keine realen Bankantworten, wir mussten es also 'blind' implementieren.",
|
"welches sich selbst nicht an die Spezifikation hält, und keine realen Bankantworten, wir mussten es also 'blind' implementieren.",
|
||||||
color = Colors.Red600,
|
color = Colors.Red600,
|
||||||
modifier = Modifier.padding(horizontal = 6.dp).padding(top = 2.dp, bottom = 4.dp)
|
modifier = Modifier.padding(horizontal = 6.dp).padding(top = 2.dp, bottom = 4.dp)
|
||||||
)
|
)
|
||||||
|
|
||||||
RoundedCornersCard {
|
RoundedCornersCard {
|
||||||
Column(Modifier.background(Color.White)) {
|
Column(Modifier.background(Color.White)) {
|
||||||
holdingsToDisplay.forEachIndexed { index, holding ->
|
holdingsToDisplay.forEachIndexed { index, holding ->
|
||||||
// key(statementOfHoldings.id) {
|
// key(statementOfHoldings.id) {
|
||||||
HoldingListItem(holding, index % 2 == 1, index < holdingsToDisplay.size - 1)
|
HoldingListItem(holding, index % 2 == 1, index < holdingsToDisplay.size - 1)
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
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 ->
|
items(groupedByDate.keys.sortedDescending()) { groupingDate ->
|
||||||
Column(Modifier.fillMaxWidth()) {
|
Column(Modifier.fillMaxWidth()) {
|
||||||
Text(
|
Text(
|
||||||
|
|
Loading…
Reference in New Issue