This commit is contained in:
guozhigq
2024-01-30 23:11:54 +08:00
parent 76d5f6333e
commit 699361e04c
10 changed files with 18 additions and 16 deletions

View File

@ -40,6 +40,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
bool _isFabVisible = true;
String replyLevel = '1';
late String heroTag;
late String oid;
// 添加页面缓存
@override
@ -48,7 +49,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
@override
void initState() {
super.initState();
int oid = widget.bvid != null ? IdUtils.bv2av(widget.bvid!) : 0;
oid = widget.bvid != null ? widget.bvid! : '0';
heroTag = Get.arguments['heroTag'];
replyLevel = widget.replyLevel ?? '1';
if (replyLevel == '2') {
@ -297,8 +298,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
isScrollControlled: true,
builder: (BuildContext context) {
return VideoReplyNewDialog(
oid: _videoReplyController.aid ??
IdUtils.bv2av(Get.parameters['bvid']!),
oid:
_videoReplyController.oid ?? Get.parameters['bvid'],
root: 0,
parent: 0,
replyType: ReplyType.video,