mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
opt: dynamicDetail/html page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -119,9 +119,14 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
||||||
int oid = replyItem.oid.toInt();
|
int oid = replyItem.oid.toInt();
|
||||||
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
||||||
Widget replyReplyPage() => Scaffold(
|
Widget replyReplyPage([bool automaticallyImplyLeading = true]) =>
|
||||||
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(title: Text('评论详情')),
|
appBar: AppBar(
|
||||||
|
title: Text('评论详情'),
|
||||||
|
titleSpacing: automaticallyImplyLeading ? null : 12,
|
||||||
|
automaticallyImplyLeading: automaticallyImplyLeading,
|
||||||
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: VideoReplyReplyPanel(
|
||||||
id: id,
|
id: id,
|
||||||
oid: oid,
|
oid: oid,
|
||||||
@@ -141,7 +146,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
(context) => MediaQuery.removePadding(
|
(context) => MediaQuery.removePadding(
|
||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
child: replyReplyPage(),
|
child: replyReplyPage(false),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -109,10 +109,13 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () {
|
||||||
int oid = replyItem.oid.toInt();
|
int oid = replyItem.oid.toInt();
|
||||||
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
int rpid = GlobalData().grpcReply ? replyItem.id.toInt() : replyItem.rpid;
|
||||||
Widget replyReplyPage() => Scaffold(
|
Widget replyReplyPage([bool automaticallyImplyLeading = true]) =>
|
||||||
|
Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text('评论详情'),
|
title: Text('评论详情'),
|
||||||
|
titleSpacing: automaticallyImplyLeading ? null : 12,
|
||||||
|
automaticallyImplyLeading: automaticallyImplyLeading,
|
||||||
),
|
),
|
||||||
body: VideoReplyReplyPanel(
|
body: VideoReplyReplyPanel(
|
||||||
id: id,
|
id: id,
|
||||||
@@ -133,7 +136,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
|
|||||||
(context) => MediaQuery.removePadding(
|
(context) => MediaQuery.removePadding(
|
||||||
context: context,
|
context: context,
|
||||||
removeLeft: true,
|
removeLeft: true,
|
||||||
child: replyReplyPage(),
|
child: replyReplyPage(false),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user