Created
February 5, 2023 12:42
-
-
Save SuvidhaMalaviya/0ba7ac5654c8434a9d22496c6ec7b29a to your computer and use it in GitHub Desktop.
Android Jetpack Compose
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
import androidx.compose.Composable | |
import androidx.ui.core.Text | |
import androidx.ui.material.TextField | |
@Composable | |
fun SimpleTextField(onValueChange: (String) -> Unit) { | |
var text by state { "" } | |
TextField(value = text, onValueChange = { text = it; onValueChange(it) }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment