opt: dynamicDetail/html page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-28 20:25:04 +08:00
parent 07307a666c
commit 93560a6fb2
2 changed files with 13 additions and 5 deletions

View File

@@ -119,9 +119,14 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
int oid = replyItem.oid.toInt();
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
Widget replyReplyPage() => Scaffold(
Widget replyReplyPage([bool automaticallyImplyLeading = true]) =>
Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(title: Text('评论详情')),
appBar: AppBar(
title: Text('评论详情'),
titleSpacing: automaticallyImplyLeading ? null : 12,
automaticallyImplyLeading: automaticallyImplyLeading,
),
body: VideoReplyReplyPanel(
id: id,
oid: oid,
@@ -141,7 +146,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
(context) => MediaQuery.removePadding(
context: context,
removeLeft: true,
child: replyReplyPage(),
child: replyReplyPage(false),
),
);
} else {

View File

@@ -109,10 +109,13 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
int oid = replyItem.oid.toInt();
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
Widget replyReplyPage() => Scaffold(
Widget replyReplyPage([bool automaticallyImplyLeading = true]) =>
Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: Text('评论详情'),
titleSpacing: automaticallyImplyLeading ? null : 12,
automaticallyImplyLeading: automaticallyImplyLeading,
),
body: VideoReplyReplyPanel(
id: id,
@@ -133,7 +136,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
(context) => MediaQuery.removePadding(
context: context,
removeLeft: true,
child: replyReplyPage(),
child: replyReplyPage(false),
),
);
} else {