flutter center container content code example
Example 1: flutter center text in container
child: Center(
child: Text(
"Hello World",
textAlign: TextAlign.center,
),
),
Example 2: center row content flutter
mainAxisAlignment: MainAxisAlignment.center //Center Row contents horizontally,
crossAxisAlignment: CrossAxisAlignment.center //Center Row contents vertically,
Example 3: flutter center row
mainAxisAlignment: MainAxisAlignment.center //Center Column contents vertically,