SliverHeader class

Inheritance

Constructors

SliverHeader({required String title, List<Widget>? leftIcon, List<Widget>? rightIcon, required double paddingTitleBottom, required double maxTitleSize, required double minTitleSize, required Color backgroundColor, required Color titleColor, required FontWeight titleFontWeight, required bool leftTitle, required double maxExtentHeight, required double paddingLeft, required double top, required double right, required double left, required bool isLoading, Widget? loadingWidget})

Properties

backgroundColor Color
final
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
final
left double
final
leftIcon List<Widget>?
final
leftTitle bool
final
loadingWidget Widget?
final
maxExtent double
The size of the header when it is not shrinking at the top of the viewport.
no setteroverride
maxExtentHeight double
final
maxTitleSize double
final
minExtent double
The smallest size to allow the header to reach, when it shrinks at the start of the viewport.
no setteroverride
minTitleSize double
final
paddingLeft double
final
paddingTitleBottom double
final
final
rightIcon List<Widget>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollingValue double
getter/setter pair
showOnScreenConfiguration PersistentHeaderShowOnScreenConfiguration?
Specifies how floating headers and pinned headers should behave in response to RenderObject.showOnScreen calls.
no setterinherited
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
title String
final
titleColor Color
final
titleFontWeight FontWeight
final
top double
final
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 SliverHeader 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