Danish Ansari
03/30/2023, 11:50 AMRizwan
03/30/2023, 1:16 PMRizwan
03/30/2023, 1:16 PMDanish Ansari
03/30/2023, 1:49 PMtextNoSuggestions there is parameter called autoCorrect in KeyBoardOptions but it doesn’t seem like it’s what I expected it to be.Danish Ansari
03/30/2023, 1:52 PMAnd I’m using- informs the keyboard whether to enable auto correct. Only applicable to text basedautoCorrectsuch asKeyboardTypes,KeyboardType.Email. It will not be applied toKeyboardType.Urisuch asKeyboardTypesKeyboardType.Number
KeyboardType.NumberRizwan
03/31/2023, 12:37 AMDanish Ansari
03/31/2023, 7:02 AMvar value by remember { mutableStateOf("") }
var oldValueCount by remember { mutableStateOf(0) }
TextField(
value = value,
onValueChange = { newValue ->
if ((newValue.count() - oldValueCount) <= 1) {
value = newValue
oldValueCount = newValue.count()
}
}
)Danish Ansari
03/31/2023, 7:15 AMTextField won’t get updatedRizwan
03/31/2023, 7:32 AM