Space between Column’s children in Flutter. You can use Wrap() widget instead Column() to add space between child widgets.And use spacing property to give equal spacing between children:
1 2 3 4 5 6 7 8 | Wrap( spacing: 20, // to apply margin horizontally runSpacing: 20, // to apply margin vertically children: <Widget>[ Text('child 1'), Text('child 2') ] ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.