Made spacing a bit greater, looks better
This commit is contained in:
parent
2170bbc474
commit
8753d4c6d8
|
@ -19,7 +19,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier.fillMaxWidth()
|
modifier = Modifier.fillMaxWidth()
|
||||||
.background(color = backgroundColor)
|
.background(color = backgroundColor)
|
||||||
.padding(horizontal = 6.dp, vertical = 4.dp)
|
.padding(horizontal = 6.dp, vertical = 6.dp)
|
||||||
) {
|
) {
|
||||||
Column(Modifier.weight(1f)) {
|
Column(Modifier.weight(1f)) {
|
||||||
Text(
|
Text(
|
||||||
|
@ -29,7 +29,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
)
|
)
|
||||||
|
|
||||||
Spacer(modifier = Modifier.height(4.dp))
|
Spacer(modifier = Modifier.height(6.dp))
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = transaction.reference,
|
text = transaction.reference,
|
||||||
|
@ -39,7 +39,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer(Modifier.width(8.dp))
|
Spacer(Modifier.width(6.dp).background(Color.Yellow))
|
||||||
|
|
||||||
Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) {
|
Column(Modifier.width(90.dp), horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.Center) {
|
||||||
Text(
|
Text(
|
||||||
|
@ -47,7 +47,7 @@ fun TransactionListItem(transaction: AccountTransaction, backgroundColor: Color)
|
||||||
color = formatUtil.getColorForAmount(transaction.amount)
|
color = formatUtil.getColorForAmount(transaction.amount)
|
||||||
)
|
)
|
||||||
|
|
||||||
Spacer(Modifier.height(8.dp))
|
Spacer(Modifier.height(6.dp))
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = formatUtil.formatDate(transaction.valueDate)
|
text = formatUtil.formatDate(transaction.valueDate)
|
||||||
|
|
Loading…
Reference in New Issue