Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lelandrichardson/1fb4f525c9485261e3205b0363621742 to your computer and use it in GitHub Desktop.
Save lelandrichardson/1fb4f525c9485261e3205b0363621742 to your computer and use it in GitHub Desktop.
@Composable
fun ValidatedInput(value: T, onChange: (T) -> Unit, isValid: Boolean) {
InputDecoration(color=if(isValid) blue else red) {
Input(value, onChange)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment