更新时间:2022-11-01 23:14:10
文本对齐居中属性设置仅水平对齐.
Text alignment center property setting only horizontal alignment.
我使用下面的代码将文本垂直和水平居中.
I used below code to set text vertically and horizontally center.
代码:
child: Center(
child: Text(
"Hello World",
textAlign: TextAlign.center,
),
),