fl_scroll_view library

Classes

AlignedGridView
A scrollable, 2D array of widgets placed according to the aligned layout.
BezierBackground
Bezier curve background.
BezierCircleHeader
Bezier circle footer. https://dribbble.com/shots/1797373-Pull-Down-To-Refresh
BezierFooter
Bezier footer.
BezierHeader
Bezier header.
BuilderFooter
Build footer widget use IndicatorBuilder.
BuilderHeader
Build header widget use IndicatorBuilder.
ClassicFooter
Classic footer.
ClassicHeader
Classic header.
CupertinoFooter
Cupertino footer. https://github.com/THEONE10211024/WaterDropListView
CupertinoHeader
Cupertino header. https://github.com/THEONE10211024/WaterDropListView
DeliveryFooter
Delivery footer. https://dribbble.com/shots/2753803-Refresh-your-delivery
DeliveryHeader
Delivery footer. https://dribbble.com/shots/2753803-Refresh-your-delivery
EasyRefresh
A flutter widget that provides pull-down refresh and pull-up load.
EasyRefreshController
Controls a EasyRefresh widget. Control refresh, loading and indicator states.
EasyRefreshData
EasyRefresh needs to share data
ERScrollBehavior
Define ScrollBehavior in the scope of EasyRefresh. Add support for web and PC.
FlEasyRefresh
FlEasyRefreshConfig
FlEasyRefreshControllers
FlRefreshScrollView
可刷新的滚动组件 嵌套 sliver 家族组件
FlScrollListGrid
滑动类型设置 physics AlwaysScrollableScrollPhysics() 总是可以滑动 NeverScrollableScrollPhysics() 禁止滚动 BouncingScrollPhysics() 内容超过一屏 有回弹效果 ClampingScrollPhysics() 包裹内容 不会有回弹
FlSliverListGrid
组合SliverListSliverGridSliverFixedExtentListSliverPrototypeExtentListSliverMasonryGridSliverAlignedGrid
FlSliverPersistentHeader
初始化 delegate 参数
FlSliverPersistentHeaderDelegate
SliverPersistentHeader 固定
FlSliverPinnedToBoxAdapter
Footer indicator.
FooterLocator
Find Footer's Location Put the last item in the list it will smartly show Footer
FooterNotifier
Footer notifier Footer status and Notifications
Header indicator.
HeaderLocator
Find Header's Location Put the first item in the list it will smartly show Header
HeaderNotifier
Header notifier Header status and Notifications
Indicator
Refresh and loading indicator. Indicator configuration and widget builder.
IndicatorNotifier
Indicator data and trigger notification.
IndicatorState
Indicator properties and state.
IndicatorStateListenable
Indicator state listenable.
ListenerFooter
Listener footer. Listen to the indicator state and respond anywhere.
ListenerHeader
Listener header. Listen to the indicator state and respond anywhere.
MasonryGridView
A scrollable, 2D array of widgets placed according to the masonry layout.
MaterialFooter
Material footer.
MaterialHeader
Material header.
NoScrollBehavior
NotLoadFooter
Parameters when EasyRefresh.onLoad is null. Overscroll behavior of ScrollView.
NotRefreshHeader
Parameters when EasyRefresh.onRefresh is null. Overscroll behavior of ScrollView.
OverrideFooter
Override the Footer parameter. First of all you have to make it clear that this is feasible, otherwise please don't use it.
OverrideHeader
Override the Header parameter. First of all you have to make it clear that this is feasible, otherwise please don't use it.
PhoenixFooter
Phoenix footer. https://github.com/Yalantis/Phoenix
PhoenixHeader
Phoenix header. https://github.com/Yalantis/Phoenix
QuiltedGridRepeatPattern
Defines how a pattern is repeating.
QuiltedGridTile
A tile for SliverQuiltedGridDelegate.
RenderSliverMasonryGrid
A sliver that places multiple box children in a two dimensional arrangement.
SecondaryBuilderFooter
Secondary builder footer.
SecondaryBuilderHeader
Secondary builder header.
SecondaryFooter
Secondary footer. Combine existing Footer with secondary.
SecondaryHeader
Secondary header. Combine existing Header with secondary.
SliverAlignedGrid
A sliver that places multiple box children in a two dimensional arrangement.
SliverMasonryGrid
A sliver that places multiple box children in a two dimensional arrangement.
SliverMasonryGridParentData
Parent data structure used by RenderSliverMasonryGrid.
SliverQuiltedGridDelegate
Controls the layout of a quilted grid.
SliverSimpleGridDelegate
Controls the layout of tiles in a some slivers.
SliverSimpleGridDelegateWithFixedCrossAxisCount
Creates grid layouts with a fixed number of tiles in the cross axis.
SliverSimpleGridDelegateWithMaxCrossAxisExtent
Creates grid layouts with tiles that each have a maximum cross-axis extent.
SliverStairedGridDelegate
Controls the layout of tiles in a staired grid.
SliverWovenGridDelegate
Controls the layout of tiles in a woven grid.
StaggeredGrid
A grid which lays out children in a staggered arrangement. Each child can have a different size. Wrap your children with a StaggeredGridTile to specify their size if it's different from a 1x1 tile.
StaggeredGridTile
Represents the size of a StaggeredGrid's tile.
StairedGridTile
A tile of a staired pattern.
TaurusFooter
Taurus footer. https://github.com/Yalantis/Taurus
TaurusHeader
Taurus header. https://github.com/Yalantis/Taurus
WovenGridTile
A tile of a woven pattern.

Enums

FlEasyRefreshResult
刷新操作
GridStyle
IndicatorMode
The current state of the indicator (Header or Footer).
IndicatorPosition
The position of the indicator.
IndicatorResult
The status returned after the task is completed.

Constants

kBezierBackgroundDisappearDuration → const Duration
Default disappear animation duration.
kBezierCircleDisappearDuration → const Duration
kDefaultSecondaryCloseTriggerOffset → const double
The default secondary close trigger offset.
kDefaultSecondaryVelocity → const double
The default opening speed of the secondary.
kDeliveryDisappearDuration → const Duration
Delivery indicator disappear animation duration.
kDeliveryTriggerOffset → const double
Delivery indicator trigger offset.
kTaurusDisappearDuration → const Duration
Taurus indicator disappear animation duration.

Functions

kBezierFrictionFactor(double overscrollFraction) double
Friction factor used by bezier curves.
kBezierHorizontalFrictionFactor(double overscrollFraction) double
Horizontal friction factor used by bezier curves.
kBezierSpringBuilder({required IndicatorMode mode, required double offset, required double actualTriggerOffset, required double velocity}) SpringDescription
Spring used by bezier curves.
kCupertinoFrictionFactor(double overscrollFraction) double
kCupertinoHorizontalFrictionFactor(double overscrollFraction) double
kDefaultSemanticIndexCallback(Widget _, int localIndex) int
kMaterialFrictionFactor(double overscrollFraction) double
Friction factor used by material.
kMaterialHorizontalFrictionFactor(double overscrollFraction) double
Friction factor used by material horizontal.
kMaterialSpringBuilder({required IndicatorMode mode, required double offset, required double actualTriggerOffset, required double velocity}) SpringDescription
Spring description used by material.

Typedefs

BezierSpinBuilder = Widget Function(BuildContext context, double value)
A builder that builds a spin widget. context BuildContext. value Animation value.
CanProcessCallBack = bool Function()
Indicator widget builder.
CIMessageBuilder = Widget Function(BuildContext context, IndicatorState state, String text, DateTime dateTime)
Message widget builder.
CIPullIconBuilder = Widget Function(BuildContext context, IndicatorState state, double animation)
Pull icon widget builder.
CITextBuilder = Widget Function(BuildContext context, IndicatorState state, String text)
Text widget builder.
ERChildBuilder = Widget Function(BuildContext context, ScrollPhysics physics)
EasyRefresh child builder. Provide ScrollPhysics, and use it in your ScrollView. ScrollPhysics will not be scoped.
ERScrollBehaviorBuilder = ScrollBehavior Function(ScrollPhysics? physics)
FlEasyRefreshCallback = FutureOr Function(EasyRefreshController controller)
return Null or FlEasyRefreshResult
FrictionFactor = double Function(double overscrollFraction)
The multiple applied to overscroll to make it appear that scrolling past the edge of the scrollable contents is harder than scrolling the list. This is done by reducing the ratio of the scroll effect output vs the scroll gesture input.
IndicatorBuilder = Widget Function(BuildContext context, IndicatorState state)
Indicator widget builder.
ModeChangeListener = void Function(IndicatorMode mode, double offset)
Mode change listener.
SecondaryIndicatorBuilder = Widget Function(BuildContext context, IndicatorState state, Indicator indicator)
Secondary indicator widget builder.
SpringBuilder = SpringDescription Function({required double actualTriggerOffset, required IndicatorMode mode, required double offset, required double velocity})
Build spring with IndicatorMode and offset. mode Indicator mode. offset Indicator offset. actualTriggerOffset Indicator actual trigger offset. velocity Indicator actual trigger offset.