PagingGrid<PageKey, Value> class

A grid list that manages pages and scroll position to read more data.

Inheritance

Constructors

PagingGrid({Key? key, required SliverGridDelegate gridDelegate, required DataSource<PageKey, Value> dataSource, required TypedWidgetBuilder<Value> builder, required ExceptionWidgetBuilder errorBuilder, required Widget initialLoadingWidget, Widget prependLoadingWidget = const SizedBox.shrink(), Widget appendLoadingWidget = const SizedBox.shrink(), Widget emptyWidget = const SizedBox.shrink(), EdgeInsets padding = EdgeInsets.zero, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, ScrollBehavior? scrollBehavior, Key? center, double anchor = 0.0, bool shrinkWrap = false, double? cacheExtent, DragStartBehavior dragStartBehavior = DragStartBehavior.start, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, Clip clipBehavior = Clip.hardEdge})
Creates a scrollable, 2D array of widgets that are created on demand.
const

Properties

anchor double
see CustomScrollView.anchor
final
appendLoadingWidget Widget
The widget that is shown when the data is loading at the end of the list.
final
builder TypedWidgetBuilder<Value>
The builder that builds a widget for the given item and index.
final
cacheExtent double?
see CustomScrollView.cacheExtent
final
center Key?
see CustomScrollView.center
final
clipBehavior Clip
see CustomScrollView.clipBehavior
final
controller ScrollController?
see CustomScrollView.controller
final
dataSource DataSource<PageKey, Value>
The data source that provides pages from loader.
final
dragStartBehavior DragStartBehavior
see CustomScrollView.dragStartBehavior
final
emptyWidget Widget
The widget that is shown when the data is empty.
final
errorBuilder ExceptionWidgetBuilder
The builder that builds a widget for the given exception.
final
gridDelegate SliverGridDelegate
The delegate that controls the layout of the children within the grid.
final
hashCode int
The hash code for this object.
no setterinherited
initialLoadingWidget Widget
The widget that is shown when the data is loading for the first time.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardDismissBehavior ScrollViewKeyboardDismissBehavior
see CustomScrollView.keyboardDismissBehavior
final
padding EdgeInsets
The padding around the grid.
final
physics ScrollPhysics?
see CustomScrollView.physics
final
prependLoadingWidget Widget
The widget that is shown when the data is loading at the beginning of the list.
final
primary bool?
see CustomScrollView.primary
final
reverse bool
see CustomScrollView.reverse
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior ScrollBehavior?
see CustomScrollView.scrollBehavior
final
scrollDirection Axis
see CustomScrollView.scrollDirection
final
shrinkWrap bool
see CustomScrollView.shrinkWrap
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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