ZwapInfiniteScroll<T> class
The infinite scroll component
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZwapInfiniteScroll
- Annotations
-
- @Deprecated("ZwapInfiniteScroll will be removed in the future versions of zwap_design_system.\nImplement your own list and provide a EndNotifierScrollController() as scroll controller to archive the same result")
Constructors
-
ZwapInfiniteScroll({Key? key, required Future<
PageData< fetchMoreData(int pageNumber), required Widget getChildWidget(T element), required ZwapInfiniteScrollType zwapInfiniteScrollType, double? mainSizeDirection, Axis? axisDirection = Axis.vertical, bool hasToReloadOnDidUpdate = false, PageData<T> >T> ? initData, double? crossSizeDirection, Widget? waitingWidget, Widget topWidget(PageData<T> elements)?, ScrollController? scrollController, EdgeInsets? customInternalPadding, bool expand = false, int? rowWidgetsCount, Duration fetchDelayDuration = const Duration(milliseconds: 300), Duration noDataDuration = const Duration(milliseconds: 1000), bool filter(T element)?})
Properties
- axisDirection → Axis?
-
The axis direction for this infinite scroll
final
- crossSizeDirection → double?
-
The max size for the grid view in base of the cross axis direction
final
- customInternalPadding → EdgeInsets?
-
Custom internal padding for the responsive row component
final
- expand → bool
-
if
true
will have no max height/widthfinal - fetchDelayDuration → Duration
-
final
-
fetchMoreData
→ Future<
PageData< Function(int pageNumber)T> > -
It fetches more data from the API call
final
- filter → (bool Function(T element)?)
-
If filter is provided is used to remove elements e that not satisfy
filter(e)
only from viewfinal - getChildWidget → Widget Function(T element)
-
It builds the child with the item builder
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasToReloadOnDidUpdate → bool
-
final
-
initData
→ PageData<
T> ? -
The optional init data
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mainSizeDirection → double?
-
The max size for height or width in base of the main axis direction
final
- noDataDuration → Duration
-
final
- rowWidgetsCount → int?
-
! Used only if expand is true and zwapInfiniteScrollType is gridView
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
The scroll controller for this infinite scroll
final
-
topWidget
→ (Widget Function(PageData<
T> elements)?) -
The widget to display on top inside this component
final
- waitingWidget → Widget?
-
The optional custom waiting widget
final
- zwapInfiniteScrollType → ZwapInfiniteScrollType
-
The infinite scroll type
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ZwapInfiniteScrollState< T> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited