chore: clean up

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 11:21:19 +08:00
parent ed60c274fc
commit 538494b7ec
90 changed files with 495 additions and 1816 deletions

View File

@@ -230,13 +230,6 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
Get.back();
liveRoomController.savedDanmaku = null;
SmartDialog.showToast('发送成功');
// liveRoomController.plPlayerController.danmakuController?.addDanmaku(
// DanmakuContentItem(
// emoticonUnique ?? message,
// type: DanmakuItemType.scroll,
// selfSend: true,
// ),
// );
} else {
SmartDialog.showToast(res['msg']);
}

View File

@@ -126,7 +126,6 @@ class _LiveRoomPageState extends State<LiveRoomPage>
ScreenBrightness().resetApplicationScreenBrightness();
PlPlayerController.setPlayCallBack(null);
_liveRoomController.msgStream?.close();
// floating?.dispose();
plPlayerController.removeStatusLister(playerListener);
plPlayerController.dispose();
super.dispose();
@@ -423,17 +422,14 @@ class _LiveRoomPageState extends State<LiveRoomPage>
),
),
),
//刷新
IconButton(
tooltip: '刷新',
onPressed: () {
_futureBuilderFuture =
_liveRoomController.queryLiveInfo();
// videoSourceInit();
},
icon: const Icon(Icons.refresh),
),
//内置浏览器打开
IconButton(
tooltip: '浏览器打开',
onPressed: () {

View File

@@ -46,38 +46,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
),
onTap: onRefresh,
),
// // ComBtn(
// icon: const Icon(
// Icons.subtitles_outlined,
// size: 18,
// color: Colors.white,
// ),
// fuc: () => Get.back(),
// ),
const Spacer(),
// ComBtn(
// icon: const Icon(
// Icons.hd_outlined,
// size: 18,
// color: Colors.white,
// ),
// fuc: () => {},
// ),
// const SizedBox(width: 4),
// Obx(
// () => ComBtn(
// icon: Icon(
// widget.liveRoomCtr!.volumeOff.value
// ? Icons.volume_off_outlined
// : Icons.volume_up_outlined,
// size: 18,
// color: Colors.white,
// ),
// fuc: () => {},
// ),
// ),
// const SizedBox(width: 4),
Obx(
() => IconButton(
onPressed: () {
@@ -175,21 +144,3 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
);
}
}
// class MSliderTrackShape extends RoundedRectSliderTrackShape {
// @override
// Rect getPreferredRect({
// required RenderBox parentBox,
// Offset offset = Offset.zero,
// SliderThemeData? sliderTheme,
// bool isEnabled = false,
// bool isDiscrete = false,
// }) {
// const double trackHeight = 3;
// final double trackLeft = offset.dx;
// final double trackTop =
// offset.dy + (parentBox.size.height - trackHeight) / 2 + 4;
// final double trackWidth = parentBox.size.width;
// return Rect.fromLTWH(trackLeft, trackTop, trackWidth, trackHeight);
// }
// }

View File

@@ -65,7 +65,6 @@ class LiveRoomChat extends StatelessWidget {
);
} catch (err) {
debugPrint(err.toString());
// SmartDialog.showToast(err.toString());
}
},
),