From 0f1acdc51998880a55e44ee9e0ab232a09cf035b Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 6 Sep 2024 17:36:27 +0200 Subject: [PATCH] Implemented showing how much of the allowed 140 characters have already been entered (but not checking the value yet) --- .../net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt index 8f1b499..18909fe 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/TransferMoneyDialog.kt @@ -225,6 +225,14 @@ fun TransferMoneyDialog( } } + Row(Modifier.fillMaxWidth().padding(top = 4.dp), horizontalArrangement = Arrangement.End) { + Text( + text = "${paymentReference.length} / 140", + style = MaterialTheme.typography.caption + ) + } + + Row(Modifier.padding(top = verticalSpace), verticalAlignment = Alignment.CenterVertically) { Switch( checked = instantTransfer,