【发布时间】:2020-07-08 02:44:56
【问题描述】:
安卓工作室 3
return new Container(
height: 64.0,
child: new Row(children: [
new Expanded(child: new Container(color: Colors.cyanAccent,
child: new Column(children: [
new Text("Today",
style: new TextStyle(
fontSize: 19.0,
color: Colors.black),
textAlign: TextAlign.left),
new Text("Thuersday, 26 March")
]))),
new Align(alignment: Alignment.centerRight, child: new Image(image: AssetImage('assets/images/ic_profile.png')))
]));
你可以看到对齐文本今天我使用textAlign: TextAlign.left。但它不起作用。
这里的结果:
【问题讨论】:
-
你想让日期也出现在左边吗?
-
@JosteveAdekanbi 是的,日期也必须在左边