|
|
|
@ -144,7 +144,7 @@ class _SendItemState extends State<SendItem> { |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Container( |
|
|
|
height: 70.w, |
|
|
|
padding: EdgeInsets.symmetric(vertical: 10.w), |
|
|
|
decoration: BoxDecoration( |
|
|
|
border: Border( |
|
|
|
bottom: BorderSide( |
|
|
|
@ -156,51 +156,62 @@ class _SendItemState extends State<SendItem> { |
|
|
|
child: Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
width: 40.w, |
|
|
|
height: 40.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(40.w)), |
|
|
|
color: const Color.fromRGBO(237, 237, 237, 1) |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Image.asset( |
|
|
|
Assets.imagesRoseGift, |
|
|
|
width: 27.w, |
|
|
|
height: 27.w, |
|
|
|
Expanded( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
width: 40.w, |
|
|
|
height: 40.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(40.w)), |
|
|
|
color: const Color.fromRGBO(237, 237, 237, 1) |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(width: 22.w,), |
|
|
|
Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
widget.item.tradeType == 201 ? "聊天花费" : |
|
|
|
widget.item.tradeType == 202 ? "赠送礼物" : |
|
|
|
widget.item.tradeType == 203 ? "连麦" : |
|
|
|
widget.item.tradeType == 204 ? "1V1语音" : |
|
|
|
widget.item.tradeType == 205 ? "1V1视频" : |
|
|
|
widget.item.tradeType == 101 ? "充值" : "", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 13.w, |
|
|
|
color: const Color.fromRGBO(51, 51, 51, 1), |
|
|
|
fontWeight: FontWeight.w500 |
|
|
|
child: Center( |
|
|
|
child: Image.asset( |
|
|
|
Assets.imagesRoseGift, |
|
|
|
width: 27.w, |
|
|
|
height: 27.w, |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
"${widget.item.createTime}", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(144, 144, 144, 1), |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
SizedBox(width: 22.w,), |
|
|
|
Expanded( |
|
|
|
child: Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
Text( |
|
|
|
widget.item.tradeType == 201 ? "聊天花费" : |
|
|
|
widget.item.tradeType == 202 ? "赠送礼物" : |
|
|
|
widget.item.tradeType == 203 ? "连麦" : |
|
|
|
widget.item.tradeType == 204 ? "1V1语音" : |
|
|
|
widget.item.tradeType == 205 ? "1V1视频" : |
|
|
|
widget.item.tradeType == 101 ? "充值" : "", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 13.w, |
|
|
|
color: const Color.fromRGBO(51, 51, 51, 1), |
|
|
|
fontWeight: FontWeight.w500 |
|
|
|
), |
|
|
|
), |
|
|
|
if(widget.item.remark != null && widget.item.remark != "")Text( |
|
|
|
"${widget.item.remark ?? ""}", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(144, 144, 144, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
"${widget.item.createTime}", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(144, 144, 144, 1), |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
"${widget.item.tradeBalance}支", |
|
|
|
|