What’s the recommended way to make a TextField readonly and clickable, but not focusable?
a
Alexandre Elias [G]
06/25/2021, 1:47 AM
I would like to hear more details about the motivating use case. note that instead of using TextField, you can do
Text(Modifier.clickable(...))
which is a readonly, clickable, nonfocusable text. but I'm not sure without knowing more about your problem whether that answers your question
j
Joey
06/25/2021, 7:08 AM
I need to implement a design in which there's a field that looks like a TextField, except that it's a datepicker in which you can't type your own text and it should open a date picker on click. For now I fixed it by putting the TextField in a Box with a clickable overlay. It's not the nicest solution, but it's the design that I have to implement and it works.
a
Alexandre Elias [G]
06/25/2021, 6:20 PM
I see. there's no currently recommended better way to do that. I'll take this usecase as a feedback that maybe we ought to make TextField styling components like