mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 代码整理
This commit is contained in:
@@ -22,7 +22,7 @@ class VideoReplyController extends GetxController {
|
||||
String? replyLevel;
|
||||
// rpid 请求楼中楼回复
|
||||
String? rpid;
|
||||
RxList<ReplyItemModel> replyList = [ReplyItemModel()].obs;
|
||||
RxList<ReplyItemModel> replyList = <ReplyItemModel>[].obs;
|
||||
// 当前页
|
||||
int currentPage = 0;
|
||||
bool isLoadingMore = false;
|
||||
|
||||
@@ -268,7 +268,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
(value) => {
|
||||
// 完成评论,数据添加
|
||||
if (value != null && value['data'] != null)
|
||||
{_videoReplyController.replyList.add(value['data'])}
|
||||
{_videoReplyController.replyList.insert(0, value['data'])}
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ class VideoReplyReplyController extends GetxController {
|
||||
// rpid 请求楼中楼回复
|
||||
String? rpid;
|
||||
ReplyType replyType = ReplyType.video;
|
||||
RxList<ReplyItemModel> replyList = [ReplyItemModel()].obs;
|
||||
RxList<ReplyItemModel> replyList = <ReplyItemModel>[].obs;
|
||||
// 当前页
|
||||
int currentPage = 0;
|
||||
bool isLoadingMore = false;
|
||||
|
||||
@@ -209,6 +209,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
videoDetailController.floating?.dispose();
|
||||
floating.dispose();
|
||||
if (!horizontalScreen) {
|
||||
AutoOrientation.portraitUpMode();
|
||||
}
|
||||
@@ -218,9 +220,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
||||
fullScreenStatusListener.cancel();
|
||||
plPlayerController!.dispose();
|
||||
}
|
||||
videoDetailController.floating?.dispose();
|
||||
videoPlayerServiceHandler.onVideoDetailDispose();
|
||||
floating.dispose();
|
||||
_lifecycleListener.dispose();
|
||||
showStatusBar();
|
||||
super.dispose();
|
||||
|
||||
Reference in New Issue
Block a user