marcglasberg/assorted_layout_widgets

TextField in RowSuper

fehernyul opened this issue · 1 comments

Hi,
When I'm putting 2 TextField in a RowSuper, and start to type to one of TextField, the aspect of 2 TextFiel was changed. Now its not 50%/50%, but 70/30, 80/20, ...
The more I write into one of them than the other, it takes up more space.

How can I prevent this?

My target is the 2 TextField stays 50%50% ratio as original.

image
image

Thanks,
Gabor

I suggest in this case you should use a native Row:

Row(children: [Expanded(child: textfield1), Expanded(child: textfield1), ]);

There is no need to use RowSuper in this case. RowSuper is not a general purpose row. It's meant to be used in some specific use cases that the native Row does not work well.