flutter column horizontal center code example
Example 1: flutter column center horizontal text
Center(
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('You are at center!'),
],
),
),
Example 2: flutter column widget vertical center
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children:children,
)