how to place text in center horizontally in flutter code example
Example 1: flutter center text in container
child: Center(
child: Text(
"Hello World",
textAlign: TextAlign.center,
),
),
Example 2: how to align text in center in flutter container
Container(
child: Align(
alignment: Alignment.center,
child: Text(
'Some text here',
style: TextStyle(
),
),
),
),