Skip to content

Instantly share code, notes, and snippets.

@Oleur
Created December 15, 2021 15:39
Show Gist options
  • Save Oleur/d15231d4dec75161a1a393bd3005a25f to your computer and use it in GitHub Desktop.
Save Oleur/d15231d4dec75161a1a393bd3005a25f to your computer and use it in GitHub Desktop.
TextField(
modifier = modifier.fillMaxWidth(),
text = text,
hint = hint,
singleLine = true,
leadingIcon = null,
visualTransformation = PhoneNumberVisualTransformation(),
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Phone)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment