Skip to content

Commit

Permalink
Align standalone sample textfields
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Nov 27, 2024
1 parent f1900e1 commit 2ecec92
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fun TextFields() {

@Composable
private fun TextFieldsRows(readOnly: Boolean) {
Column(modifier = Modifier.padding(vertical = 4.dp), verticalArrangement = Arrangement.spacedBy(8.dp)) {
Column(modifier = Modifier.padding(vertical = 4.dp), verticalArrangement = Arrangement.spacedBy(10.dp)) {
Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) {
val state1 = rememberTextFieldState("TextField")
TextField(state = state1, modifier = Modifier.width(200.dp), readOnly = readOnly)
Expand All @@ -85,7 +85,7 @@ private fun TextFieldsRows(readOnly: Boolean) {
)
}

Row(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.CenterVertically) {
Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.CenterVertically) {
val state1 = rememberTextFieldState("")
TextField(
state = state1,
Expand All @@ -99,7 +99,7 @@ private fun TextFieldsRows(readOnly: Boolean) {
TextField(state = state2, enabled = false, modifier = Modifier.width(200.dp), readOnly = readOnly)
}

Row(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.Top) {
Row(horizontalArrangement = Arrangement.spacedBy(10.dp), verticalAlignment = Alignment.Top) {
val state1 = rememberTextFieldState("")
TextField(
state = state1,
Expand Down

0 comments on commit 2ecec92

Please sign in to comment.