|
|
|
@ -97,31 +97,34 @@ class _LiveRoomAnchorShowcaseState extends State<LiveRoomAnchorShowcase> { |
|
|
|
return 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( |
|
|
|
anchorInfo?.isFriend == true ? '好友' : "加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
child: GestureDetector( |
|
|
|
onTap: (){ |
|
|
|
if(anchorInfo?.isFriend == true){ |
|
|
|
return; |
|
|
|
} |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 2); |
|
|
|
} |
|
|
|
}, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(20.w)), |
|
|
|
color: Colors.white, |
|
|
|
), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
anchorInfo?.isFriend == true ? '好友' : "加好友", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
if(anchorInfo?.isFriend == true){ |
|
|
|
return; |
|
|
|
} |
|
|
|
if (anchorInfo != null) { |
|
|
|
_showGiftPopupForUser(anchorInfo, 2); |
|
|
|
} |
|
|
|
}); |
|
|
|
); |
|
|
|
}), |
|
|
|
], |
|
|
|
), |
|
|
|
@ -280,30 +283,33 @@ class _LiveRoomAnchorShowcaseState extends State<LiveRoomAnchorShowcase> { |
|
|
|
Positioned( |
|
|
|
bottom: 5.w, |
|
|
|
right: 5.w, |
|
|
|
child: Container( |
|
|
|
width: 47.w, |
|
|
|
height: 20.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all( |
|
|
|
Radius.circular(20.w), |
|
|
|
child: GestureDetector( |
|
|
|
onTap: (){ |
|
|
|
if(userInfo.isFriend == true){ |
|
|
|
return; |
|
|
|
} |
|
|
|
_showGiftPopupForUser(userInfo, 2); |
|
|
|
}, |
|
|
|
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( |
|
|
|
userInfo.isFriend != true ? "加好友" : '好友', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
child: Center( |
|
|
|
child: Text( |
|
|
|
userInfo.isFriend != true ? "加好友" : '好友', |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 11.w, |
|
|
|
color: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
).onTap((){ |
|
|
|
if(userInfo.isFriend == true){ |
|
|
|
return; |
|
|
|
} |
|
|
|
_showGiftPopupForUser(userInfo, 2); |
|
|
|
}), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
left: 5.w, |
|
|
|
|