great_list_view library

Classes

AnimatedListAnimationData
Holds information about an animation.
AnimatedListAnimator
This interface can be implemented to customize all animations. DefaultAnimatedListAnimator is the default implementation.
AnimatedListBaseReorderModel
This model is used to manage the reordering of a list view. The following callbacks has to be provided:
AnimatedListController
Use this controller to notify to the AnimatedListView about changes in your underlying list and more.
AnimatedListDiffBaseComparator<T>
A derivated version of this class has to be implemented to tell AnimatedListDiffDispatcher how to compare items of two lists in order to dispatch the differences to the AnimatedListController.
AnimatedListDiffComparator<T>
A callback function-based version of AnimatedListDiffBaseComparator, useful if you are bored of creating a new derivated class.
AnimatedListDiffDispatcher<T>
This class takes an initial list that can be replaced with a new one through the dispatchNewList method. When a new list is provided, the Myers diff algorithm runs to detect the differences. These differences will be dispatched to the controller provided. If the total item count is greater that the spawnNewInsolateCount parameter, the algorithm will be executed in a separated Isolate. An builder has to be provided to build replaced and changed items (as required by AnimatedListController.notifyChangedRange, AnimatedListController.notifyReplacedRange and AnimatedListController.notifyRemovedRange methods). The two lists are compared using the comparator provided.
AnimatedListDiffListBaseComparator<T>
This class extends AnimatedListDiffListBaseComparator in order to handle easier the simplified version with Lists objects.
AnimatedListDiffListComparator<T>
A callback function-based version of AnimatedListDiffListBaseComparator.
AnimatedListDiffListDispatcher<T>
This class extends AnimatedListDiffDispatcher in order to handle easier the simplified version with Lists objects.
AnimatedListReorderModel
A callback function-based version of AnimatedListBaseReorderModel.
AnimatedListView
A scrollable and animated list of widgets arranged linearly, inspired by ListView.
AnimatedRenderSliverFixedExtentList
This class extends the original RenderSliverFixedExtentList to add support for animations and reordering feature to a list of fixed-extent items.
AnimatedRenderSliverList
This class extends the original RenderSliverList to add support for animations and reordering feature to a list of variabile-size items.
AnimatedRenderSliverMultiBoxAdaptor
This mixin is used by AnimatedRenderSliverList and AnimatedRenderSliverFixedExtentList.
AnimatedSliverChildBuilderDelegate
Inspired by SliverChildBuilderDelegate.
AnimatedSliverChildDelegate
A delegate that supplies children for animated slivers.
AnimatedSliverFixedExtentList
An animated sliver that places multiple box children with the same main axis extent in a linear array, inspired by SliverFixedExtentList.
AnimatedSliverList
An animated sliver that places multiple box children in a linear array along the main axis, inspired by SliverList.
AnimatedSliverMultiBoxAdaptorElement
An element that lazily builds children for a SliverWithKeepAliveWidget.
AnimatedSliverMultiBoxAdaptorWidget
A base class for animated sliver that have multiple box children, inspired by SliverMultiBoxAdaptorWidget.
AnimatedWidgetBuilderData
Additional information to build a specific item of the list.
AutomaticAnimatedListReorderModel<T>
Default implementation of a reorder model based on a List.
AutomaticAnimatedListView<T>
Extension of the AnimatedListView that offers intrisic use of the AnimatedListDiffListDispatcher to automatically animate the list view when this widget is rebuilt with a different list. All attributes, except for list, are identical to those of the AnimatedListView.
Cancelable<O>
DefaultAnimatedListAnimator
Default implementation of the inteface AnimatedListAnimator that uses CurveTweens objects. Custom animation durations and curves can also be provided.
Executor
LongPressReorderable
This widget is meant to be wrapped around list items to add automatic reordering functionality using the long press gesture. In general it is not necessary to create this widget directly because it is already done by the most used classes, such AnimatedListView, AutomaticAnimatedListView, AnimatedSliverChildBuilderDelegate and so on.
MultiContainerRenderObjectList<ChildType extends RenderObject, ParentDataType extends MultiContainerParentDataMixin<ChildType, KeyType>, KeyType>
MultiRenderSliverBoxChildManager
MultiRenderSliverMultiBoxAdaptor
MultiSliverMultiBoxAdaptorParentData
SendPort
Sends messages to its ReceivePorts.
TypeSendPort<T>

Enums

WorkPriority

Mixins

MultiContainerParentDataMixin<ChildType extends RenderObject, KeyType>
MultiContainerRenderObjectMixin<ChildType extends RenderObject, ParentDataType extends MultiContainerParentDataMixin<ChildType, KeyType>, KeyType>

Constants

DEBUG_ENABLED → const bool
kDefaultAnimatedElevation → const double
Default value of the Material.elevation.
kDefaultMorphTransitionDuration → const Duration
Default duration of the MorphTransition effect.
kDismissOrIncomingAnimationCurve → const Curve
Default curve of a dismiss or incoming animation.
kDismissOrIncomingAnimationDuration → const Duration
Default duration of a dismiss or incoming animation.
kMovingAnimationCurve → const Curve
Default curve of a moving animation.
kMovingAnimationDuration → const Duration
Default duration of a moving animation.
kReorderAnimationCurve → const Curve
Default curve of a reordering animation.
kReorderAnimationDuration → const Duration
Default duration of a reordering animation.
kResizeAnimationCurve → const Curve
Default curve of a resizing animation.
kResizeAnimationDuration → const Duration
Default duration of a resizing animation.
kSpawnNewIsolateCount → const int

Properties

fixScrollableRepainting bool
If true during perform layout a dummy ScrollUpdateNotification is sent to repaint the widget that is listening to it (ie. Scrollbar).
getter/setter pair

Functions

dbgBegin(String message) → void
dbgEnd() → void
dbgPrint(String message) → void
debugElement(Element? element) String
debugRenderBox(RenderObject? ro) String
joinBuilders(_IntervalBuilder leftBuilder, _IntervalBuilder rightBuilder, int leftCount) → _IntervalBuilder
offsetIntervalBuilder(_IntervalBuilder? iBuilder, int offset) → _IntervalBuilder?

Typedefs

AnimatedListDiffBuilder<T> = Widget Function(BuildContext context, T list, int index, AnimatedWidgetBuilderData data)
AnimatedListDiffListBuilder<T> = Widget Function(BuildContext context, T element, AnimatedWidgetBuilderData data)
AnimatedWidgetBuilder = Widget Function(BuildContext context, int index, AnimatedWidgetBuilderData data)
The builder used to build the items of the list view.
InitialScrollOffsetCallback = double? Function(SliverConstraints constraints)
UpdateToOffsetCallback = double Function(int index, int count, double remainingTime)

Exceptions / Errors

CanceledError