mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-19 01:56:53 +08:00
@@ -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) {
|
||||
|
||||
@@ -410,7 +410,7 @@ class LiveRoomController extends GetxController {
|
||||
}
|
||||
|
||||
// 修改画质
|
||||
FutureOr<void> changeQn(int qn) {
|
||||
Future<void>? changeQn(int qn) {
|
||||
if (currentQn == qn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -215,6 +215,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
|
||||
child = PlayerFocus(
|
||||
plPlayerController: plPlayerController,
|
||||
onSendDanmaku: _liveRoomController.onSendDanmaku,
|
||||
onRefresh: _liveRoomController.queryLiveUrl,
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user