Hi. Thank you for this beautiful layout tool. It makes the layout work for flutter much easier.
GridFit.expand will apply the size constraint to some Widgets, like Container and Image.
But it doesn't apply to Text, which makes Text always use smallest size to just fit the text inside. So the textAlign has no effect.
The LayoutGrid should set the Text fit size of cell, just like the Column or so.
The workaround is Align(alignment: Alignment.topCenter) , which is verbose if you want to make many Text to align center in cell.
The Center doesn't fit because I want to remain the vertical position of the Text to the top. And of course neither Expanded nor Flexiable.
Hi. Thank you for this beautiful layout tool. It makes the layout work for flutter much easier.
GridFit.expand
will apply the size constraint to some Widgets, like Container and Image. But it doesn't apply to Text, which makes Text always use smallest size to just fit the text inside. So thetextAlign
has no effect.Here is an example code.
And here is outcome:
The LayoutGrid should set the Text fit size of cell, just like the Column or so.
The workaround is
Align(alignment: Alignment.topCenter)
, which is verbose if you want to make many Text to align center in cell. TheCenter
doesn't fit because I want to remain the vertical position of the Text to the top. And of course neitherExpanded
norFlexiable
.