BasicTextField2: A TextField of Dreams [1/2] | by Alejandra Stamato | Nov, 2023
Meet TextField (orBasicTextField) APIs to implement a text field in Jetpack Compose: var textField by rememberSaveable { mutableStateOf(“”) }TextField(value = textField,onValueChange = { textField = it },) This simple API has a series of shortcomings, most notably: It is way too easy to introduce async…
Mobile App Development
0
BasicTextField2: A TextField of Dreams [2/2] | by Alejandra Stamato | Nov, 2023
In part 1️⃣ we’ve covered how to: manage state with the new BasicTextField2 APIs to prevent state synchronicity issues do basic styling including using decorator and line limits solve for common scenarios when observing state and applying business rules edit the value of the text…