feat: 动态跳转直播
This commit is contained in:
@ -20,12 +20,13 @@ class LiveRoomController extends GetxController {
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
var args = Get.arguments['liveItem'];
|
||||
liveItem = args;
|
||||
print(liveItem.roomId);
|
||||
roomId = liveItem.roomId!;
|
||||
if (args.pic != null && args.pic != '') {
|
||||
cover = args.cover;
|
||||
if (Get.arguments != null) {
|
||||
var args = Get.arguments['liveItem'];
|
||||
liveItem = args;
|
||||
roomId = liveItem.roomId!;
|
||||
if (args.pic != null && args.pic != '') {
|
||||
cover = args.cover;
|
||||
}
|
||||
}
|
||||
queryLiveInfo();
|
||||
}
|
||||
|
@ -91,15 +91,16 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
||||
controller: _meeduPlayerController!,
|
||||
),
|
||||
),
|
||||
Container(
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
height: 45,
|
||||
padding: const EdgeInsets.only(left: 12, right: 12),
|
||||
child: Row(children: [
|
||||
Text(
|
||||
_liveRoomController.liveItem.watchedShow['text_large']),
|
||||
]),
|
||||
),
|
||||
if (_liveRoomController.liveItem.watchedShow != null)
|
||||
Container(
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
height: 45,
|
||||
padding: const EdgeInsets.only(left: 12, right: 12),
|
||||
child: Row(children: [
|
||||
Text(_liveRoomController
|
||||
.liveItem.watchedShow['text_large']),
|
||||
]),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
Reference in New Issue
Block a user