I have a Row
which contains three widget, [icon, button, text]
. I want all of them to align at the top. If the text is long everything is fine. But if the text is short, It is not align.
Here is the code: https://pastebin.com/e4iRVSFz
I have a Row
which contains three widget, [icon, button, text]
. I want all of them to align at the top. If the text is long everything is fine. But if the text is short, It is not align.
Here is the code: https://pastebin.com/e4iRVSFz
3
Answers
TextButtons have an iternal padding. It helps to remove this by giving a style that removes them like this
try add a
ButtonStyle
toTextButton
The issue is occur because you use Textbutton here. By default Textbutton has some height and width thats you didn’t see the proper alignment. So replace TextButton with GestureDetector and see the magic.