fix: live qa btn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-12 18:22:54 +08:00
parent 95c35cac58
commit a04da4c34a

View File

@@ -105,28 +105,28 @@ class _BottomControlState extends State<BottomControl> {
), ),
const SizedBox(width: 4), const SizedBox(width: 4),
], ],
SizedBox( Obx(
width: 30, () => SizedBox(
child: PopupMenuButton<int>( width: 30,
padding: EdgeInsets.zero, child: PopupMenuButton<int>(
initialValue: widget.liveRoomCtr.currentQn, padding: EdgeInsets.zero,
onSelected: (value) { initialValue: widget.liveRoomCtr.currentQn,
widget.liveRoomCtr.changeQn(value); onSelected: (value) {
}, widget.liveRoomCtr.changeQn(value);
child: Obx( },
() => Text( child: Text(
widget.liveRoomCtr.currentQnDesc.value, widget.liveRoomCtr.currentQnDesc.value,
style: const TextStyle(color: Colors.white, fontSize: 13), style: const TextStyle(color: Colors.white, fontSize: 13),
), ),
itemBuilder: (BuildContext context) {
return widget.liveRoomCtr.acceptQnList.map((e) {
return PopupMenuItem<int>(
value: e['code'],
child: Text(e['desc']),
);
}).toList();
},
), ),
itemBuilder: (BuildContext context) {
return widget.liveRoomCtr.acceptQnList.map((e) {
return PopupMenuItem<int>(
value: e['code'],
child: Text(e['desc']),
);
}).toList();
},
), ),
), ),
const SizedBox(width: 10), const SizedBox(width: 10),