|
|
|
@ -59,63 +59,65 @@ class _LiveRoomAnchorShowcaseState extends State<LiveRoomAnchorShowcase> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
top: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 20.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.w)), |
|
|
|
color: const Color.fromRGBO(0, 0, 0, .3), |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: |
|
|
|
Image.asset( |
|
|
|
Assets.imagesGiftIcon, |
|
|
|
width: 19.w, |
|
|
|
height: 19.w, |
|
|
|
).onTap(() { |
|
|
|
final anchorInfo = _roomController |
|
|
|
.rtcChannelDetail |
|
|
|
.value |
|
|
|
?.anchorInfo; |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 1); |
|
|
|
} |
|
|
|
}), |
|
|
|
if(_roomController.currentRole != CurrentRole.broadcaster) |
|
|
|
Positioned( |
|
|
|
top: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 20.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.w)), |
|
|
|
color: const Color.fromRGBO(0, 0, 0, .3), |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: |
|
|
|
Image.asset( |
|
|
|
Assets.imagesGiftIcon, |
|
|
|
width: 19.w, |
|
|
|
height: 19.w, |
|
|
|
).onTap(() { |
|
|
|
final anchorInfo = _roomController |
|
|
|
.rtcChannelDetail |
|
|
|
.value |
|
|
|
?.anchorInfo; |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 1); |
|
|
|
} |
|
|
|
}), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
bottom: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.w)), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
"加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
if(_roomController.currentRole != CurrentRole.broadcaster) |
|
|
|
Positioned( |
|
|
|
bottom: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.w)), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
"加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
final anchorInfo = _roomController |
|
|
|
.rtcChannelDetail |
|
|
|
.value |
|
|
|
?.anchorInfo; |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 2); |
|
|
|
} |
|
|
|
}), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
final anchorInfo = _roomController |
|
|
|
.rtcChannelDetail |
|
|
|
.value |
|
|
|
?.anchorInfo; |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 2); |
|
|
|
} |
|
|
|
}), |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
SizedBox(height: 5.w), |
|
|
|
@ -241,54 +243,56 @@ class _LiveRoomAnchorShowcaseState extends State<LiveRoomAnchorShowcase> { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
top: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 20.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all( |
|
|
|
Radius.circular(20.w), |
|
|
|
if(!isCurrentUser) |
|
|
|
Positioned( |
|
|
|
top: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 20.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all( |
|
|
|
Radius.circular(20.w), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: |
|
|
|
Image.asset( |
|
|
|
Assets.imagesGiftIcon, |
|
|
|
width: 19.w, |
|
|
|
height: 19.w, |
|
|
|
).onTap(() { |
|
|
|
_showGiftPopupForUser(userInfo, 1); |
|
|
|
}), |
|
|
|
), |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: |
|
|
|
Image.asset( |
|
|
|
Assets.imagesGiftIcon, |
|
|
|
width: 19.w, |
|
|
|
height: 19.w, |
|
|
|
).onTap(() { |
|
|
|
_showGiftPopupForUser(userInfo, 1); |
|
|
|
}), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
bottom: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all( |
|
|
|
Radius.circular(20.w), |
|
|
|
if(!isCurrentUser) |
|
|
|
Positioned( |
|
|
|
bottom: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all( |
|
|
|
Radius.circular(20.w), |
|
|
|
), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
"加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
"加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
_showGiftPopupForUser(userInfo, 2); |
|
|
|
}), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
_showGiftPopupForUser(userInfo, 2); |
|
|
|
}), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
left: 5.w, |
|
|
|
bottom: 5.w, |
|
|
|
|