feat: use interactiveviewer gallery

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-12 11:10:57 +08:00
parent 22f668245d
commit 5d8b42a928
85 changed files with 2966 additions and 1171 deletions

View File

@@ -21,15 +21,19 @@ class VideoReplyPanel extends StatefulWidget {
final String? replyLevel;
final String heroTag;
final Function replyReply;
final VoidCallback? onViewImage;
final ValueChanged<int>? onDismissed;
const VideoReplyPanel({
super.key,
this.bvid,
this.oid,
this.rpid = 0,
this.replyLevel,
required this.heroTag,
required this.replyReply,
super.key,
this.onViewImage,
this.onDismissed,
});
@override
@@ -248,6 +252,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
isTop: _videoReplyController.hasUpTop && index == 0,
upMid: loadingState.response.subjectControl.upMid,
getTag: () => heroTag,
onViewImage: widget.onViewImage,
onDismissed: widget.onDismissed,
)
: ReplyItem(
replyItem: loadingState.response.replies[index],
@@ -263,9 +269,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
);
},
onDelete: _videoReplyController.onMDelete,
// isTop: _videoReplyController.hasUpTop && index == 0,
// upMid: loadingState.response.subjectControl.upMid,
// getTag: () => heroTag,
onViewImage: widget.onViewImage,
onDismissed: widget.onDismissed,
);
}
},