CustomSliverPersistentHeaderDelegate class

A custom SliverPersistentHeaderDelegate that builds a header with pinned left, center, and right columns.

The header is composed of multiple HeaderRows, each of which can have columns pinned to the left, center (scrollable), or right.

Inheritance

Constructors

CustomSliverPersistentHeaderDelegate({required List<HeaderRow> headerRows, required ScrollController scrollController, required TreeDataTableProvider provider, required double minExtent, required double maxExtent, String? persistColumnStateId, int revision = 0, bool showSelectionColumn = false})
Creates a CustomSliverPersistentHeaderDelegate.

Properties

hashCode int
The hash code for this object.
no setterinherited
headerRows List<HeaderRow>
The list of header rows to display in the persistent header.
final
maxExtent double
The maximum extent (height) of the header.
final
minExtent double
The minimum extent (height) of the header.
final
persistColumnStateId String?
Optional identifier for persisting column state.
final
provider TreeDataTableProvider
The provider that manages the state and logic for the tree data table.
final
revision int
Changes when immutable header content is rebuilt in place.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController
The scroll controller for the horizontal scrolling of the header.
final
showOnScreenConfiguration PersistentHeaderShowOnScreenConfiguration?
Specifies how floating headers and pinned headers should behave in response to RenderObject.showOnScreen calls.
no setterinherited
showSelectionColumn bool
Whether the header should reserve space for the row-selection column.
final
snapConfiguration FloatingHeaderSnapConfiguration?
Specifies how floating headers should animate in and out of view.
no setterinherited
stretchConfiguration OverScrollHeaderStretchConfiguration?
Specifies an AsyncCallback and offset for execution.
no setterinherited
vsync TickerProvider?
A TickerProvider to use when animating the header's size changes.
no setterinherited

Methods

build(BuildContext context, double shrinkOffset, bool overlapsContent) Widget
The widget to place inside the SliverPersistentHeader.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant CustomSliverPersistentHeaderDelegate oldDelegate) bool
Whether this delegate is meaningfully different from the old delegate.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited