How can achieve this TextField? Seems very difficult to write extra code on top of
BaseTextField
.
m
manueldidonna
09/13/2020, 2:09 PM
I think you can use a simple BaseTextField with an hint and some padding, inserted in a TopAppBar
manueldidonna
09/13/2020, 2:11 PM
For the hint check the TextField implementation
s
Sourabh Rawat
09/13/2020, 2:19 PM
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
manueldidonna
09/13/2020, 2:29 PM
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
Sourabh Rawat
09/13/2020, 2:39 PM
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
Zach Klippenstein (he/him) [MOD]
09/13/2020, 5:05 PM
I think this video talks about building custom text fields at some point: