Modify the built-in Greeting function that came with the template to match the following code. Remember to add all the imports that are necessary, such as on remember
(alt-Enter or option-Return over the red element will give you the option). Adjust all the calls to Greeting to work properly and preview it in an emulator.
@Composable
fun Greeting() {
var name = remember { mutableStateOf("") }
Column() {
Text(
text = "Hello ${name.value}!",
fontSize = 16.sp,
)
TextField(value = name.value, onValueChange = { name.value = it })
}
}