Danish Ansari
03/30/2023, 11:50 AMRizwan
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.And I’m using- informs the keyboard whether to enable auto correct. Only applicable to text basedautoCorrect
such asKeyboardTypes
,KeyboardType.Email
. It will not be applied toKeyboardType.Uri
such asKeyboardTypes
KeyboardType.Number
KeyboardType.Number
Rizwan
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()
}
}
)
TextField
won’t get updatedRizwan
03/31/2023, 7:32 AM