Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-01 17:06:21 +08:00
parent 8f08104f37
commit 37fa165f59
9 changed files with 21 additions and 39 deletions

View File

@@ -148,7 +148,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
onPressed: () {
feedBack();
_videoReplyController.onReply(
context,
null,
oid: _videoReplyController.aid,
replyType: _videoReplyController.videoType.replyType,
);
@@ -204,10 +204,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
replyItem: response[index],
replyLevel: widget.replyLevel,
replyReply: replyReply,
onReply: (replyItem) => _videoReplyController.onReply(
context,
replyItem: replyItem,
),
onReply: _videoReplyController.onReply,
onDelete: (item, subIndex) =>
_videoReplyController.onRemove(index, item, subIndex),
upMid: _videoReplyController.upMid,

View File

@@ -156,9 +156,8 @@ class VideoReplyReplyController extends ReplyController
@override
void onReply(
BuildContext context, {
ReplyInfo? replyItem, {
int? oid,
ReplyInfo? replyItem,
int? replyType,
int? index,
}) {
@@ -173,7 +172,7 @@ class VideoReplyReplyController extends ReplyController
final root = replyItem.id.toInt();
final key = oid + root;
Navigator.of(context)
Get.key.currentState!
.push(
PublishRoute(
pageBuilder: (buildContext, animation, secondaryAnimation) {

View File

@@ -224,11 +224,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
replyItem: firstFloor,
replyLevel: 2,
needDivider: false,
onReply: (replyItem) => _controller.onReply(
context,
replyItem: replyItem,
index: -1,
),
onReply: (replyItem) => _controller.onReply(replyItem, index: -1),
upMid: _controller.upMid,
onCheckReply: (item) =>
_controller.onCheckReply(item, isManual: true),
@@ -366,8 +362,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel>
return ReplyItemGrpc(
replyItem: replyItem,
replyLevel: isDialogue ? 3 : 2,
onReply: (replyItem) =>
_controller.onReply(this.context, replyItem: replyItem, index: index),
onReply: (replyItem) => _controller.onReply(replyItem, index: index),
onDelete: (item, subIndex) => _controller.onRemove(index, item, null),
upMid: _controller.upMid,
showDialogue: () => Scaffold.of(context).showBottomSheet(

View File

@@ -2079,7 +2079,6 @@ class HeaderControlState extends State<HeaderControl>
return;
}
if (await Floating().isPipAvailable) {
plPlayerController.showControls.value = false;
if (context.mounted &&
!videoPlayerServiceHandler!.enableBackgroundPlay) {
final theme = Theme.of(context);