Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-09 11:53:46 +08:00
parent 5586d12b1f
commit 702cf988d3
2 changed files with 37 additions and 40 deletions

View File

@@ -311,45 +311,41 @@ class _DynamicSliverAppBarState extends State<DynamicSliverAppBar> {
final double effectiveCollapsedHeight = final double effectiveCollapsedHeight =
topPadding + kToolbarHeight + bottomHeight + 1; topPadding + kToolbarHeight + bottomHeight + 1;
return MediaQuery.removePadding( return SliverPinnedHeader(
context: context, onPerformLayout: widget.onPerformLayout,
removeBottom: true, delegate: _SliverAppBarDelegate(
child: SliverPinnedHeader( leading: widget.leading,
onPerformLayout: widget.onPerformLayout, automaticallyImplyLeading: widget.automaticallyImplyLeading,
delegate: _SliverAppBarDelegate( title: widget.title,
leading: widget.leading, actions: widget.actions,
automaticallyImplyLeading: widget.automaticallyImplyLeading, automaticallyImplyActions: widget.automaticallyImplyActions,
title: widget.title, flexibleSpace: widget.flexibleSpace,
actions: widget.actions, bottom: widget.bottom,
automaticallyImplyActions: widget.automaticallyImplyActions, elevation: widget.elevation,
flexibleSpace: widget.flexibleSpace, scrolledUnderElevation: widget.scrolledUnderElevation,
bottom: widget.bottom, shadowColor: widget.shadowColor,
elevation: widget.elevation, surfaceTintColor: widget.surfaceTintColor,
scrolledUnderElevation: widget.scrolledUnderElevation, forceElevated: widget.forceElevated,
shadowColor: widget.shadowColor, backgroundColor: widget.backgroundColor,
surfaceTintColor: widget.surfaceTintColor, foregroundColor: widget.foregroundColor,
forceElevated: widget.forceElevated, iconTheme: widget.iconTheme,
backgroundColor: widget.backgroundColor, actionsIconTheme: widget.actionsIconTheme,
foregroundColor: widget.foregroundColor, primary: widget.primary,
iconTheme: widget.iconTheme, centerTitle: widget.centerTitle,
actionsIconTheme: widget.actionsIconTheme, excludeHeaderSemantics: widget.excludeHeaderSemantics,
primary: widget.primary, titleSpacing: widget.titleSpacing,
centerTitle: widget.centerTitle, collapsedHeight: effectiveCollapsedHeight,
excludeHeaderSemantics: widget.excludeHeaderSemantics, topPadding: topPadding,
titleSpacing: widget.titleSpacing, shape: widget.shape,
collapsedHeight: effectiveCollapsedHeight, toolbarHeight: kToolbarHeight,
topPadding: topPadding, leadingWidth: widget.leadingWidth,
shape: widget.shape, toolbarTextStyle: widget.toolbarTextStyle,
toolbarHeight: kToolbarHeight, titleTextStyle: widget.titleTextStyle,
leadingWidth: widget.leadingWidth, systemOverlayStyle: widget.systemOverlayStyle,
toolbarTextStyle: widget.toolbarTextStyle, forceMaterialTransparency: widget.forceMaterialTransparency,
titleTextStyle: widget.titleTextStyle, useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder,
systemOverlayStyle: widget.systemOverlayStyle, clipBehavior: widget.clipBehavior,
forceMaterialTransparency: widget.forceMaterialTransparency, actionsPadding: widget.actionsPadding,
useDefaultSemanticsOrder: widget.useDefaultSemanticsOrder,
clipBehavior: widget.clipBehavior,
actionsPadding: widget.actionsPadding,
),
), ),
); );
} }

View File

@@ -27,7 +27,8 @@ class _MyReplyState extends State<MyReply> with DynMixin {
@override @override
void initState() { void initState() {
super.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 @override