|
|
@ -146,45 +146,45 @@ class _ChatGiftPopupState extends State<ChatGiftPopup> { |
|
|
? MediaQuery.of(context).padding.bottom |
|
|
? MediaQuery.of(context).padding.bottom |
|
|
: 10.h, |
|
|
: 10.h, |
|
|
), |
|
|
), |
|
|
child: Row( |
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
children: [ |
|
|
|
|
|
// 数量选择(暂时不实现,固定为1) |
|
|
|
|
|
SizedBox(width: 1.w), |
|
|
|
|
|
ValueListenableBuilder<int>( |
|
|
|
|
|
valueListenable: widget.giftNum, |
|
|
|
|
|
builder: (context, num, _) { |
|
|
|
|
|
return Row( |
|
|
|
|
|
children: [ |
|
|
|
|
|
GestureDetector( |
|
|
|
|
|
onTap: () => _handleSendGift(), |
|
|
|
|
|
child: Container( |
|
|
|
|
|
width: 63.w, |
|
|
|
|
|
height: 30.w, |
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(30.w)), |
|
|
|
|
|
gradient: const LinearGradient( |
|
|
|
|
|
begin: Alignment.centerLeft, |
|
|
|
|
|
end: Alignment.centerRight, |
|
|
|
|
|
colors: [ |
|
|
|
|
|
Color.fromRGBO(61, 138, 224, 1), |
|
|
|
|
|
Color.fromRGBO(131, 89, 255, 1), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
child: Row( |
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
|
children: [ |
|
|
|
|
|
// 数量选择(暂时不实现,固定为1) |
|
|
|
|
|
SizedBox(width: 1.w), |
|
|
|
|
|
ValueListenableBuilder<int>( |
|
|
|
|
|
valueListenable: widget.giftNum, |
|
|
|
|
|
builder: (context, num, _) { |
|
|
|
|
|
return Row( |
|
|
|
|
|
children: [ |
|
|
|
|
|
GestureDetector( |
|
|
|
|
|
onTap: () => _handleSendGift(), |
|
|
|
|
|
child: Container( |
|
|
|
|
|
width: 63.w, |
|
|
|
|
|
height: 30.w, |
|
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(30.w)), |
|
|
|
|
|
gradient: const LinearGradient( |
|
|
|
|
|
begin: Alignment.centerLeft, |
|
|
|
|
|
end: Alignment.centerRight, |
|
|
|
|
|
colors: [ |
|
|
|
|
|
Color.fromRGBO(61, 138, 224, 1), |
|
|
|
|
|
Color.fromRGBO(131, 89, 255, 1), |
|
|
|
|
|
], |
|
|
), |
|
|
), |
|
|
child: Center( |
|
|
|
|
|
child: Text( |
|
|
|
|
|
"赠送", |
|
|
|
|
|
style: TextStyle(fontSize: 13.w, color: Colors.white), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
), |
|
|
|
|
|
child: Center( |
|
|
|
|
|
child: Text( |
|
|
|
|
|
"赠送", |
|
|
|
|
|
style: TextStyle(fontSize: 13.w, color: Colors.white), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
], |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
|