Created
April 24, 2022 12:50
-
-
Save merttoptas/457cfff28f05c19ee2edb2a9984f03c0 to your computer and use it in GitHub Desktop.
SearchEditText
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun SearchEditText(modifier: Modifier) { | |
BloomTextField( | |
modifier = modifier, | |
value = "", | |
onValueChange = {}, | |
placeholder = { | |
BloomText( | |
modifier = modifier, | |
text = "Search", | |
style = MaterialTheme.typography.body1 | |
) | |
}, | |
visualTransformation = VisualTransformation.None, | |
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Text), | |
leadingIcon = { | |
Icon( | |
imageVector = Icons.Default.Search, | |
contentDescription = "Search", | |
modifier = Modifier.size(18.dp), | |
) | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment