Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-31 13:10:09 +08:00
parent dbc7bcd0dd
commit 8964197b73
68 changed files with 560 additions and 293 deletions

View File

@@ -107,14 +107,20 @@ class _ContributionRankType extends StatefulWidget {
class _ContributionRankTypeState extends State<_ContributionRankType>
with AutomaticKeepAliveClientMixin {
late final _controller = Get.put(
ContributionRankController(
ruid: widget.ruid,
roomId: widget.roomId,
type: widget.type,
),
tag: '${widget.roomId}${widget.type.name}',
);
late final ContributionRankController _controller;
@override
void initState() {
super.initState();
_controller = Get.put(
ContributionRankController(
ruid: widget.ruid,
roomId: widget.roomId,
type: widget.type,
),
tag: '${widget.roomId}${widget.type.name}',
);
}
@override
Widget build(BuildContext context) {

View File

@@ -410,7 +410,7 @@ class LiveRoomController extends GetxController {
}
// 修改画质
FutureOr<void> changeQn(int qn) {
Future<void>? changeQn(int qn) {
if (currentQn == qn) {
return null;
}

View File

@@ -215,6 +215,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
child = PlayerFocus(
plPlayerController: plPlayerController,
onSendDanmaku: _liveRoomController.onSendDanmaku,
onRefresh: _liveRoomController.queryLiveUrl,
child: child,
);
}