SyntaxFix
Write A Post
Hire A Developer
Questions
Text alignment center property setting only horizontal alignment.
I used below code to set text vertically and horizontally center.
Code:
child: Center( child: Text( "Hello World", textAlign: TextAlign.center, ), ),