mainAxisAlignment
to center
causes all 3 widgets as one to become centered.
How do I center the 2nd widget only, and keep the other two widgets beside the middle 2nd widget?
mainAxisAlignment
to center
causes all 3 widgets as one to become centered.
How do I center the 2nd widget only, and keep the other two widgets beside the middle 2nd widget?
2
Answers
create 4 rows , center the middle one with its own alignment. something like this …
This would center only the second Container and the first and third would be at the start and end position.