【发布时间】:2020-10-01 10:38:33
【问题描述】:
我有一排有 2 个孩子,一个图标(位置)和文字
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Icon(
Icons.location_on,
color: Colors.white,
),
Expanded(
child: Text(
"Kyla Olsen Ap #651-8679 Sodales Av.Tamuning PA 10855 (492) 709-6392", // a long address
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.bold),
),
),
],
),
这在图标和文本之间有一些空间。如果我对齐文本开始,那么它没有空格,但第二行也从开始,我希望文本居中
我希望位置 iocn 和文本中没有任何空格,例如电话号码或电子邮件地址。
【问题讨论】:
标签: flutter flutter-row