fix_视频评论安全区域
This commit is contained in:
parent
0fd1ed8799
commit
9902980bf8
@ -285,14 +285,17 @@ class _VideoDetailPageState extends State<VideoDetailPage> {
|
||||
),
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return CommentBottomSheet(
|
||||
return SafeArea(
|
||||
child: CommentBottomSheet(
|
||||
videoId: videoId,
|
||||
onCommentCountChanged: (newCount) {
|
||||
// 更新视频的评论数量
|
||||
setState(() {
|
||||
videoData['commentsCounts'] = newCount;
|
||||
});
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@ -771,7 +771,8 @@ class _AttentionModuleState extends State<AttentionModule> {
|
||||
),
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return CommentBottomSheet(
|
||||
return SafeArea(
|
||||
child: CommentBottomSheet(
|
||||
videoId: videoId,
|
||||
onCommentCountChanged: (newCount) {
|
||||
// 更新对应视频的评论数量
|
||||
@ -780,7 +781,9 @@ class _AttentionModuleState extends State<AttentionModule> {
|
||||
videoList[index]['commentsCounts'] = newCount;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -1294,7 +1297,8 @@ class _AttentionModuleState extends State<AttentionModule> {
|
||||
Text(
|
||||
'@${videoList[videoModuleController.videoPlayIndex.value]['nickname'] ?? '未知'}',
|
||||
style: const TextStyle(color: Colors.white, fontSize: 16.0),
|
||||
) else
|
||||
)
|
||||
else
|
||||
Text(
|
||||
'@未知',
|
||||
style: const TextStyle(color: Colors.white, fontSize: 16.0),
|
||||
@ -1350,7 +1354,8 @@ class _AttentionModuleState extends State<AttentionModule> {
|
||||
],
|
||||
);
|
||||
},
|
||||
)else
|
||||
)
|
||||
else
|
||||
SizedBox()
|
||||
],
|
||||
)),
|
||||
|
||||
@ -772,7 +772,8 @@ class _FriendModuleState extends State<FriendModule> {
|
||||
),
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return CommentBottomSheet(
|
||||
return SafeArea(
|
||||
child: CommentBottomSheet(
|
||||
videoId: videoId,
|
||||
onCommentCountChanged: (newCount) {
|
||||
// 更新对应视频的评论数量
|
||||
@ -781,7 +782,9 @@ class _FriendModuleState extends State<FriendModule> {
|
||||
videoList[index]['commentsCounts'] = newCount;
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -1357,7 +1360,8 @@ class _FriendModuleState extends State<FriendModule> {
|
||||
],
|
||||
);
|
||||
},
|
||||
)else
|
||||
)
|
||||
else
|
||||
SizedBox()
|
||||
],
|
||||
)),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user