I have a Column
widget with two TextField
widgets as children and I want to have some space between both of them.
I already tried mainAxi
you can use Wrap()
widget instead Column()
to add space between child widgets.And use spacing property to give equal spacing between children
Wrap(
spacing: 20, // to apply margin in the main axis of the wrap
runSpacing: 20, // to apply margin in the cross axis of the wrap
children: [
Text('child 1'),
Text('child 2')
]
)