diff --git a/lib/common/widgets/dynamic_sliver_app_bar/dynamic_sliver_app_bar.dart b/lib/common/widgets/dynamic_sliver_app_bar/dynamic_sliver_app_bar.dart index b0ec2c5c0..523178580 100644 --- a/lib/common/widgets/dynamic_sliver_app_bar/dynamic_sliver_app_bar.dart +++ b/lib/common/widgets/dynamic_sliver_app_bar/dynamic_sliver_app_bar.dart @@ -311,45 +311,41 @@ class _DynamicSliverAppBarState extends State { final double effectiveCollapsedHeight = topPadding + kToolbarHeight + bottomHeight + 1; - return MediaQuery.removePadding( - context: context, - removeBottom: true, - child: SliverPinnedHeader( - onPerformLayout: widget.onPerformLayout, - delegate: _SliverAppBarDelegate( - leading: widget.leading, - automaticallyImplyLeading: widget.automaticallyImplyLeading, - title: widget.title, - actions: widget.actions, - automaticallyImplyActions: widget.automaticallyImplyActions, - flexibleSpace: widget.flexibleSpace, - bottom: widget.bottom, - elevation: widget.elevation, - scrolledUnderElevation: widget.scrolledUnderElevation, - shadowColor: widget.shadowColor, - surfaceTintColor: widget.surfaceTintColor, - forceElevated: widget.forceElevated, - backgroundColor: widget.backgroundColor, - foregroundColor: widget.foregroundColor, - iconTheme: widget.iconTheme, - actionsIconTheme: widget.actionsIconTheme, - primary: widget.primary, - centerTitle: widget.centerTitle, - excludeHeaderSemantics: widget.excludeHeaderSemantics, - titleSpacing: widget.titleSpacing, - collapsedHeight: effectiveCollapsedHeight, - topPadding: topPadding, - shape: widget.shape, - toolbarHeight: kToolbarHeight, - leadingWidth: widget.leadingWidth, - toolbarTextStyle: widget.toolbarTextStyle, - titleTextStyle: widget.titleTextStyle, - systemOverlayStyle: widget.systemOverlayStyle, - forceMaterialTransparency: widget.forceMaterialTransparency, - useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder, - clipBehavior: widget.clipBehavior, - actionsPadding: widget.actionsPadding, - ), + return SliverPinnedHeader( + onPerformLayout: widget.onPerformLayout, + delegate: _SliverAppBarDelegate( + leading: widget.leading, + automaticallyImplyLeading: widget.automaticallyImplyLeading, + title: widget.title, + actions: widget.actions, + automaticallyImplyActions: widget.automaticallyImplyActions, + flexibleSpace: widget.flexibleSpace, + bottom: widget.bottom, + elevation: widget.elevation, + scrolledUnderElevation: widget.scrolledUnderElevation, + shadowColor: widget.shadowColor, + surfaceTintColor: widget.surfaceTintColor, + forceElevated: widget.forceElevated, + backgroundColor: widget.backgroundColor, + foregroundColor: widget.foregroundColor, + iconTheme: widget.iconTheme, + actionsIconTheme: widget.actionsIconTheme, + primary: widget.primary, + centerTitle: widget.centerTitle, + excludeHeaderSemantics: widget.excludeHeaderSemantics, + titleSpacing: widget.titleSpacing, + collapsedHeight: effectiveCollapsedHeight, + topPadding: topPadding, + shape: widget.shape, + toolbarHeight: kToolbarHeight, + leadingWidth: widget.leadingWidth, + toolbarTextStyle: widget.toolbarTextStyle, + titleTextStyle: widget.titleTextStyle, + systemOverlayStyle: widget.systemOverlayStyle, + forceMaterialTransparency: widget.forceMaterialTransparency, + useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder, + clipBehavior: widget.clipBehavior, + actionsPadding: widget.actionsPadding, ), ); } diff --git a/lib/pages/my_reply/view.dart b/lib/pages/my_reply/view.dart index e54ac09b5..9428fa136 100644 --- a/lib/pages/my_reply/view.dart +++ b/lib/pages/my_reply/view.dart @@ -27,7 +27,8 @@ class _MyReplyState extends State with DynMixin { @override void initState() { super.initState(); - _replies = GStorage.reply!.values.map(ReplyInfo.fromBuffer).toList(); + _replies = GStorage.reply!.values.map(ReplyInfo.fromBuffer).toList() + ..sort((a, b) => b.ctime.compareTo(a.ctime)); // rpid not aligned } @override