How can achieve this TextField? Seems very difficu...
# compose
s
How can achieve this TextField? Seems very difficult to write extra code on top of
BaseTextField
.
m
I think you can use a simple BaseTextField with an hint and some padding, inserted in a TopAppBar
For the hint check the TextField implementation
s
Right. I am doing just that. Just that, I think hint/placeholder should be a native BaseTextField feature, instead of material pkg custom one.
m
I think that's easier to add an hint over a simple unstyled textfield, in according to the specifications of a particular design system (font, size, color, animation)
s
Thanks. I initially thought adding the hint will be very difficult when I looked at the TextField code. But I tried implementing with simple Stack and it worked!!
👍 1
z
I think this video talks about building custom text fields at some point:

https://youtu.be/DDd6IOlH3io

3