samuel
03/15/2021, 11:13 PMTextFieldValue
input, is there a way to specify the type that is expected or is it always expected to be a string
(TextFieldValue.text
) For example could i have an arbitrary KotlinType
that i could use for validation directly?jim
03/15/2021, 11:34 PMtextFieldValue.annotatedString.text
and use it as a String. Keep in mind that you'll almost certainly want to retain selection
and composition
also in order to preserve editing and IME.samuel
03/15/2021, 11:43 PMInt
Float
etc, that are specified at runtime and could be used to dynamically generate the text fields with “automatic” validation. So for example, if the expected type would be Int
, there would be away to “validate” i.e only accept Int
as valid inputsamuel
03/15/2021, 11:45 PMKotlinType
or KType
jim
03/16/2021, 2:54 AMsamuel
03/16/2021, 9:05 AM