diff --git a/lib/pages/live_room/widgets/bottom_control.dart b/lib/pages/live_room/widgets/bottom_control.dart index a92cfb00..a94a21da 100644 --- a/lib/pages/live_room/widgets/bottom_control.dart +++ b/lib/pages/live_room/widgets/bottom_control.dart @@ -105,28 +105,28 @@ class _BottomControlState extends State { ), const SizedBox(width: 4), ], - SizedBox( - width: 30, - child: PopupMenuButton( - padding: EdgeInsets.zero, - initialValue: widget.liveRoomCtr.currentQn, - onSelected: (value) { - widget.liveRoomCtr.changeQn(value); - }, - child: Obx( - () => Text( + Obx( + () => SizedBox( + width: 30, + child: PopupMenuButton( + padding: EdgeInsets.zero, + initialValue: widget.liveRoomCtr.currentQn, + onSelected: (value) { + widget.liveRoomCtr.changeQn(value); + }, + child: Text( widget.liveRoomCtr.currentQnDesc.value, style: const TextStyle(color: Colors.white, fontSize: 13), ), + itemBuilder: (BuildContext context) { + return widget.liveRoomCtr.acceptQnList.map((e) { + return PopupMenuItem( + value: e['code'], + child: Text(e['desc']), + ); + }).toList(); + }, ), - itemBuilder: (BuildContext context) { - return widget.liveRoomCtr.acceptQnList.map((e) { - return PopupMenuItem( - value: e['code'], - child: Text(e['desc']), - ); - }).toList(); - }, ), ), const SizedBox(width: 10),