我认为您应该考虑使用Row
的{{3}}中所说的ListTile
小部件,例如,应该使用Row
来实现复杂的UI。
根据您的情况,您需要一个Row
,属性为crossAxisAlignment: CrossAxisAlignment.start
Row(
crossAxisAlignment: CrossAxisAlignment.start,children: <Widget>[
CircleAvatar(
radius: 20,backgroundImage: AssetImage('assets/avatar1.jpg'),),Expanded(
child: Container(
padding: EdgeInsets.only(left: 5),child: Column(
crossAxisAlignment: CrossAxisAlignment.start,children: <Widget>[
RichText(
text: TextSpan(
style: DefaultTextStyle.of(context).style,children: [
TextSpan(
text: 'hello : ',style: TextStyle(fontWeight: FontWeight.bold),TextSpan(
text:
'the comment comment the comment comment the comment comment comment comment the comment comment the comment comment',],
本文链接:https://www.f2er.com/3164025.html