flutterdart

Row inside a Column Widget


I am using a Gridview inside that gridview i am using Column and Some text after that a Row for some buttons but i want the alignment from left side of button and text would be same so it looks nice UI but row is giving unusual space from left so it does match the text alignment and buttons looks uneven

i tried expanded and stack but that space is still there and the alignment from left is not matching enter image description here


Solution

  • Since you haven't shared any code I can only guess.

    I assume you are using a Button widget. These widgets come with minimum touch target sizes, which likely is the reason why you are experiencing the undesired space to the left.

    If you want to remove this touch target you can update the MaterialTapTargetSize (docs here) from using .padded to .shrinkWrap.