更新时间:2021-09-06 21:56:24
文本对齐中心属性仅设置水平对齐。
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,
),
),