mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt: video page
show tabbar on landscape page prevent showing bottomsheet above fullscreen video
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:PiliPalaX/common/widgets/http_error.dart';
|
||||
import 'package:PiliPalaX/http/loading_state.dart';
|
||||
import 'package:PiliPalaX/pages/video/detail/reply_reply/view.dart';
|
||||
import 'package:easy_debounce/easy_throttle.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
@@ -18,6 +17,7 @@ class VideoReplyPanel extends StatefulWidget {
|
||||
final int rpid;
|
||||
final String? replyLevel;
|
||||
final String heroTag;
|
||||
final Function replyReply;
|
||||
|
||||
const VideoReplyPanel({
|
||||
this.bvid,
|
||||
@@ -25,6 +25,7 @@ class VideoReplyPanel extends StatefulWidget {
|
||||
this.rpid = 0,
|
||||
this.replyLevel,
|
||||
required this.heroTag,
|
||||
required this.replyReply,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@@ -115,21 +116,6 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
}
|
||||
}
|
||||
|
||||
// 展示二级回复
|
||||
void replyReply(replyItem) {
|
||||
showBottomSheet(
|
||||
context: context,
|
||||
builder: (context) => VideoReplyReplyPanel(
|
||||
rcount: replyItem.rcount,
|
||||
oid: replyItem.oid,
|
||||
rpid: replyItem.rpid,
|
||||
firstFloor: replyItem,
|
||||
replyType: ReplyType.video,
|
||||
source: 'videoDetail',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
@@ -239,7 +225,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
||||
replyItem: loadingState.response[index],
|
||||
showReplyRow: true,
|
||||
replyLevel: replyLevel,
|
||||
replyReply: replyReply,
|
||||
replyReply: widget.replyReply,
|
||||
replyType: ReplyType.video,
|
||||
onReply: () {
|
||||
_videoReplyController.onReply(
|
||||
|
||||
Reference in New Issue
Block a user