diff --git a/lib/pages/article/view.dart b/lib/pages/article/view.dart index 567bccfcd..b6b33fb47 100644 --- a/lib/pages/article/view.dart +++ b/lib/pages/article/view.dart @@ -163,9 +163,10 @@ class _ArticlePageState extends State EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () { int oid = replyItem.oid.toInt(); int rpid = replyItem.id.toInt(); - Widget replyReplyPage( - [bool automaticallyImplyLeading = true, - VoidCallback? onDispose]) => + Widget replyReplyPage({ + bool automaticallyImplyLeading = true, + VoidCallback? onDispose, + }) => Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( @@ -177,6 +178,7 @@ class _ArticlePageState extends State top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, id: id, oid: oid, rpid: rpid, @@ -208,8 +210,8 @@ class _ArticlePageState extends State context: context, removeLeft: true, child: replyReplyPage( - false, - () { + automaticallyImplyLeading: false, + onDispose: () { if (isFabVisible && _imageStatus != true) { _showFab(); } diff --git a/lib/pages/dynamics_detail/view.dart b/lib/pages/dynamics_detail/view.dart index 288bc3d85..6bbc37d56 100644 --- a/lib/pages/dynamics_detail/view.dart +++ b/lib/pages/dynamics_detail/view.dart @@ -161,9 +161,10 @@ class _DynamicDetailPageState extends State EasyThrottle.throttle('replyReply', const Duration(milliseconds: 500), () { int oid = replyItem.oid.toInt(); int rpid = replyItem.id.toInt(); - Widget replyReplyPage( - [bool automaticallyImplyLeading = true, - VoidCallback? onDispose]) => + Widget replyReplyPage({ + bool automaticallyImplyLeading = true, + VoidCallback? onDispose, + }) => Scaffold( resizeToAvoidBottomInset: false, appBar: AppBar( @@ -175,6 +176,7 @@ class _DynamicDetailPageState extends State top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, id: id, oid: oid, rpid: rpid, @@ -206,8 +208,8 @@ class _DynamicDetailPageState extends State context: context, removeLeft: true, child: replyReplyPage( - false, - () { + automaticallyImplyLeading: false, + onDispose: () { if (isFabVisible && _imageStatus != true) { _showFab(); } diff --git a/lib/pages/video/reply_reply/view.dart b/lib/pages/video/reply_reply/view.dart index 1394e254e..d32c601fe 100644 --- a/lib/pages/video/reply_reply/view.dart +++ b/lib/pages/video/reply_reply/view.dart @@ -21,6 +21,7 @@ import 'package:scrollable_positioned_list/scrollable_positioned_list.dart'; class VideoReplyReplyPanel extends CommonSlidePage { const VideoReplyReplyPanel({ super.key, + super.enableSlide, this.id, required this.oid, required this.rpid, diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index 3890724c6..666ebe966 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -136,6 +136,7 @@ class PiliScheme { top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, oid: int.parse(oid), rpid: rpid, source: 'routePush', @@ -278,6 +279,7 @@ class PiliScheme { top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, oid: oid, rpid: rootId, id: rpId, @@ -328,6 +330,7 @@ class PiliScheme { top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, oid: oid, rpid: rpId, source: 'routePush', @@ -392,6 +395,7 @@ class PiliScheme { top: false, bottom: false, child: VideoReplyReplyPanel( + enableSlide: false, oid: oid ?? int.parse(dynId), rpid: rpid, source: 'routePush',