Skip to content

Commit

Permalink
Merge pull request #367 from FineFindus/fix/search-multi-line
Browse files Browse the repository at this point in the history
fix: set search text field to single line
  • Loading branch information
Bnyro authored Jan 27, 2024
2 parents 79f280c + c818383 commit 5570b74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ fun ContactSearchScreen(
leadingIcon = Icons.Default.Search,
placeholder = stringResource(id = R.string.search),
imeAction = ImeAction.Done,
focusRequester = focusRequester
focusRequester = focusRequester,
singleLine = true
)
ContactsList(
contacts = visibleContacts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fun ElevatedTextInputField(
placeholder: String? = null,
leadingIcon: ImageVector? = null,
imeAction: ImeAction = ImeAction.Default,
singleLine: Boolean = false,
focusRequester: FocusRequester = remember { FocusRequester() }
) {
TextField(
Expand All @@ -52,6 +53,7 @@ fun ElevatedTextInputField(
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent
),
keyboardOptions = KeyboardOptions(imeAction = imeAction)
keyboardOptions = KeyboardOptions(imeAction = imeAction),
singleLine = singleLine,
)
}

0 comments on commit 5570b74

Please sign in to comment.