From 93560a6fb2f1f0269604c8f00f715f62068721ba Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sat, 28 Dec 2024 20:25:04 +0800 Subject: [PATCH] opt: dynamicDetail/html page Signed-off-by: bggRGjQaUbCoE --- lib/pages/dynamics/detail/view.dart | 11 ++++++++--- lib/pages/html/view.dart | 7 +++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/pages/dynamics/detail/view.dart b/lib/pages/dynamics/detail/view.dart index ce8f5109..6690952d 100644 --- a/lib/pages/dynamics/detail/view.dart +++ b/lib/pages/dynamics/detail/view.dart @@ -119,9 +119,14 @@ class _DynamicDetailPageState extends State 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 (context) => MediaQuery.removePadding( context: context, removeLeft: true, - child: replyReplyPage(), + child: replyReplyPage(false), ), ); } else { diff --git a/lib/pages/html/view.dart b/lib/pages/html/view.dart index 6ccce409..27df1dd3 100644 --- a/lib/pages/html/view.dart +++ b/lib/pages/html/view.dart @@ -109,10 +109,13 @@ class _HtmlRenderPageState extends State 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 (context) => MediaQuery.removePadding( context: context, removeLeft: true, - child: replyReplyPage(), + child: replyReplyPage(false), ), ); } else {