Added account's currency next to amount TextField

This commit is contained in:
dankito 2024-09-05 00:17:48 +02:00
parent 8005b44309
commit ae95673856
1 changed files with 10 additions and 10 deletions

View File

@ -180,17 +180,17 @@ fun TransferMoneyDialog(
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Next)
)
Spacer(modifier = Modifier.height(verticalSpace))
Row(Modifier.padding(vertical = verticalSpace).fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) {
OutlinedTextField(
value = amount,
onValueChange = { amount = it },
label = { Text("Betrag") },
modifier = Modifier.weight(1f).focusRequester(amountFocus),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Decimal, imeAction = ImeAction.Next)
)
OutlinedTextField(
value = amount,
onValueChange = { amount = it },
label = { Text("Betrag") },
modifier = Modifier.fillMaxWidth().focusRequester(amountFocus),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Decimal, imeAction = ImeAction.Next)
)
Spacer(modifier = Modifier.height(verticalSpace))
Text(formatUtil.formatCurrency(senderAccount.currency), Modifier.padding(start = 4.dp))
}
AutocompleteTextField(
"Verwendungszweck (optional)",