What's EditText analog in compose? I've tried Text...
# compose
g
What's EditText analog in compose? I've tried TextField but it throws NotImplementedError when I click on it
l
TextField
is what you’re looking for, you might be doing something else wrong
g
l
Are you sure
value
needs to be a
String
?
g
l
What API level are you running this on? I think it is only currently supported on newer versions - see: http://issuetracker.google.com/issues/143220669
g
composeVersion is "0.1.0-dev02", minSdkVersion is 21. Running on 28 api
l
Can you try using the
TextField
which accept an
EditorModel
?
g
TextField(EditorModel(text = "123"))
same error
l
The problem is not related to that part of code then
I can use both
TextField
without any problems
g
u have "0.1.0-dev02" version too?
l
Yes
f
I've tried TextField but it throws NotImplementedError when I click on it
Perhaps it is not implemented?
but it works for Luca... ok I see
g
Can you send me apk file? I will try to run it on my device
l
Can you send more code? 😂
Maybe we can help you figure out
Just saying:
TextField
crash is not helping
g
I've sent you all code
l
Next time please, not an image 😉
g
ok