mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
@@ -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: () {
|
||||
|
||||
@@ -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);
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -65,7 +65,6 @@ class LiveRoomChat extends StatelessWidget {
|
||||
);
|
||||
} catch (err) {
|
||||
debugPrint(err.toString());
|
||||
// SmartDialog.showToast(err.toString());
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user