我正在创建我自己的Ffltter聊天,我需要最后一条消息的时间出现在写了photo的人的右上角!但是我不知道怎么做,如果你能帮忙,我会很感激的!
child: Column(
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(60),
child: Image.asset("images/churka.jpg", height: 60,
width: 60,
fit: BoxFit.cover,)),
SizedBox(width: 10.0,),
Column(
// mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 10,),
Row(
children: [
Text('Человек', style: TextStyle(fontSize: 18,
fontWeight: FontWeight.w500),),
],
),
Text('Как дела',
style: TextStyle(color: Color.fromRGBO(
87, 87, 87, 1.0),
fontSize: 16,
fontWeight: FontWeight.w400),),
],
),
Text('11:11', style: TextStyle(color: Color.fromRGBO(
87, 87, 87, 1.0),
fontSize: 16,
fontWeight: FontWeight.w400),),
],
),
],
),
我试着用不同的方式写mainAxisAlignment
,但后来名字和最后一条信息的位置改变了