Proper way to add icons next to a TextField?


#1

Recently I’ve been experimenting with using GridLayout and it works but it doesn’t look good because of the padding. Is this the proper way of aligning icons and a TextField? Would it work better by using Absolute? I am trying to achieve a similar look like your typical chat app with a TextField and a few icons next to it. Thanks.


#2

Gridview would be the obvious way to do it. Set the icon column to auto and the text field to *.

Not sure padding issue you’re having.


#3

What I ended up doing was exactly what you said, did “star, 4 star, star” so the TextField section would be larger and then did negative padding for the icons… it “worked”