Skip to content

Instantly share code, notes, and snippets.

@merttoptas
Created April 24, 2022 12:50
Show Gist options
  • Save merttoptas/457cfff28f05c19ee2edb2a9984f03c0 to your computer and use it in GitHub Desktop.
Save merttoptas/457cfff28f05c19ee2edb2a9984f03c0 to your computer and use it in GitHub Desktop.
SearchEditText
@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