container in center flutter 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,