|
|
@ -119,7 +119,7 @@ class _TrendItemState extends State<TrendItem> { |
|
|
widgets.add( |
|
|
widgets.add( |
|
|
Text( |
|
|
Text( |
|
|
textPart, |
|
|
textPart, |
|
|
style: TextStyle(fontSize: 14.sp, color: Colors.black), |
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 11.w, color: Colors.black), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
@ -134,8 +134,8 @@ class _TrendItemState extends State<TrendItem> { |
|
|
padding: EdgeInsets.symmetric(horizontal: 0), |
|
|
padding: EdgeInsets.symmetric(horizontal: 0), |
|
|
child: Image.asset( |
|
|
child: Image.asset( |
|
|
emoji.path, |
|
|
emoji.path, |
|
|
width: 24.w, |
|
|
|
|
|
height: 24.w, |
|
|
|
|
|
|
|
|
width: 18.w, |
|
|
|
|
|
height: 18.w, |
|
|
fit: BoxFit.contain, |
|
|
fit: BoxFit.contain, |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -152,7 +152,7 @@ class _TrendItemState extends State<TrendItem> { |
|
|
widgets.add( |
|
|
widgets.add( |
|
|
Text( |
|
|
Text( |
|
|
textPart, |
|
|
textPart, |
|
|
style: TextStyle(fontSize: 14.sp, color: Colors.black), |
|
|
|
|
|
|
|
|
style: TextStyle(fontSize: 11.sp, color: Colors.black), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
@ -183,14 +183,15 @@ class _TrendItemState extends State<TrendItem> { |
|
|
Text( |
|
|
Text( |
|
|
widget.item.nickName ?? "", |
|
|
widget.item.nickName ?? "", |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 13.w, |
|
|
|
|
|
fontWeight: FontWeight.w500 |
|
|
|
|
|
|
|
|
fontSize: 12.w, |
|
|
|
|
|
fontWeight: FontWeight.w500, |
|
|
|
|
|
color: const Color.fromRGBO(144, 144, 144, 1) |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
if(widget.item.operationType == 1)Text( |
|
|
if(widget.item.operationType == 1)Text( |
|
|
"赞了你的动态", |
|
|
"赞了你的动态", |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 11.w, |
|
|
|
|
|
|
|
|
fontSize: 13.w, |
|
|
fontWeight: FontWeight.w500 |
|
|
fontWeight: FontWeight.w500 |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -199,15 +200,16 @@ class _TrendItemState extends State<TrendItem> { |
|
|
maxLines: 1, |
|
|
maxLines: 1, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 11.w, |
|
|
|
|
|
|
|
|
fontSize: 13.w, |
|
|
fontWeight: FontWeight.w500 |
|
|
fontWeight: FontWeight.w500 |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
|
|
|
SizedBox(height: 15.w,), |
|
|
Text( |
|
|
Text( |
|
|
widget.item.createTime ?? "", |
|
|
widget.item.createTime ?? "", |
|
|
style: TextStyle( |
|
|
style: TextStyle( |
|
|
fontSize: 11.w, |
|
|
|
|
|
color: const Color.fromRGBO(51, 51, 51, .6), |
|
|
|
|
|
|
|
|
fontSize: 12.w, |
|
|
|
|
|
color: const Color.fromRGBO(144, 144, 144, .6), |
|
|
fontWeight: FontWeight.w500 |
|
|
fontWeight: FontWeight.w500 |
|
|
), |
|
|
), |
|
|
) |
|
|
) |
|
|
@ -221,12 +223,15 @@ class _TrendItemState extends State<TrendItem> { |
|
|
padding: EdgeInsets.all(10.w), |
|
|
padding: EdgeInsets.all(10.w), |
|
|
decoration: BoxDecoration( |
|
|
decoration: BoxDecoration( |
|
|
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|
|
borderRadius: BorderRadius.all(Radius.circular(8.w)), |
|
|
color: const Color.fromRGBO(0, 0, 0, .2) |
|
|
|
|
|
|
|
|
color: const Color.fromRGBO(240, 240, 240, 1) |
|
|
), |
|
|
), |
|
|
child: !widget.item.content!.contains('[emoji:') ? Text( |
|
|
child: !widget.item.content!.contains('[emoji:') ? Text( |
|
|
widget.item.content ?? "", |
|
|
widget.item.content ?? "", |
|
|
overflow: TextOverflow.ellipsis, |
|
|
overflow: TextOverflow.ellipsis, |
|
|
maxLines: 3, |
|
|
|
|
|
|
|
|
maxLines: 4, |
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
fontSize: 11.w |
|
|
|
|
|
), |
|
|
) : ClipRect( |
|
|
) : ClipRect( |
|
|
child: Wrap( |
|
|
child: Wrap( |
|
|
crossAxisAlignment: WrapCrossAlignment.center, |
|
|
crossAxisAlignment: WrapCrossAlignment.center, |
|
|
|