Revert "chore: clean up"

This reverts commit 538494b7ec.
This commit is contained in:
bggRGjQaUbCoE
2025-04-20 18:04:06 +08:00
parent a5c7ec0d60
commit 6f4321ae14
90 changed files with 1814 additions and 493 deletions

View File

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

View File

@@ -46,7 +46,38 @@ 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: () {
@@ -144,3 +175,21 @@ 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,6 +65,7 @@ class LiveRoomChat extends StatelessWidget {
);
} catch (err) {
debugPrint(err.toString());
// SmartDialog.showToast(err.toString());
}
},
),