fix_视频评论安全区域

This commit is contained in:
abu 2025-10-11 18:22:44 +08:00
parent 0fd1ed8799
commit 9902980bf8
3 changed files with 28 additions and 16 deletions

View File

@ -285,14 +285,17 @@ class _VideoDetailPageState extends State<VideoDetailPage> {
), ),
context: context, context: context,
builder: (context) { builder: (context) {
return CommentBottomSheet( return SafeArea(
child: CommentBottomSheet(
videoId: videoId, videoId: videoId,
onCommentCountChanged: (newCount) { onCommentCountChanged: (newCount) {
// //
setState(() { setState(() {
videoData['commentsCounts'] = newCount; videoData['commentsCounts'] = newCount;
}); });
}); },
),
);
}, },
); );
} }

View File

@ -771,7 +771,8 @@ class _AttentionModuleState extends State<AttentionModule> {
), ),
context: context, context: context,
builder: (context) { builder: (context) {
return CommentBottomSheet( return SafeArea(
child: CommentBottomSheet(
videoId: videoId, videoId: videoId,
onCommentCountChanged: (newCount) { onCommentCountChanged: (newCount) {
// //
@ -780,7 +781,9 @@ class _AttentionModuleState extends State<AttentionModule> {
videoList[index]['commentsCounts'] = newCount; videoList[index]['commentsCounts'] = newCount;
} }
}); });
}); },
),
);
}, },
); );
} }
@ -1294,7 +1297,8 @@ class _AttentionModuleState extends State<AttentionModule> {
Text( Text(
'@${videoList[videoModuleController.videoPlayIndex.value]['nickname'] ?? '未知'}', '@${videoList[videoModuleController.videoPlayIndex.value]['nickname'] ?? '未知'}',
style: const TextStyle(color: Colors.white, fontSize: 16.0), style: const TextStyle(color: Colors.white, fontSize: 16.0),
) else )
else
Text( Text(
'@未知', '@未知',
style: const TextStyle(color: Colors.white, fontSize: 16.0), style: const TextStyle(color: Colors.white, fontSize: 16.0),
@ -1350,7 +1354,8 @@ class _AttentionModuleState extends State<AttentionModule> {
], ],
); );
}, },
)else )
else
SizedBox() SizedBox()
], ],
)), )),

View File

@ -772,7 +772,8 @@ class _FriendModuleState extends State<FriendModule> {
), ),
context: context, context: context,
builder: (context) { builder: (context) {
return CommentBottomSheet( return SafeArea(
child: CommentBottomSheet(
videoId: videoId, videoId: videoId,
onCommentCountChanged: (newCount) { onCommentCountChanged: (newCount) {
// //
@ -781,7 +782,9 @@ class _FriendModuleState extends State<FriendModule> {
videoList[index]['commentsCounts'] = newCount; videoList[index]['commentsCounts'] = newCount;
} }
}); });
}); },
),
);
}, },
); );
} }
@ -1357,7 +1360,8 @@ class _FriendModuleState extends State<FriendModule> {
], ],
); );
}, },
)else )
else
SizedBox() SizedBox()
], ],
)), )),