SliverPagingGrid<PageKey, Value> class

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

Inheritance

Constructors

SliverPagingGrid({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(), bool fillRemainErrorWidget = true, bool fillRemainEmptyWidget = true, EdgeInsets padding = EdgeInsets.zero})
const

Properties

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
dataSource DataSource<PageKey, Value>
The data source that provides pages from loader.
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
fillRemainEmptyWidget bool
If true, the empty widget will fill the remaining space.
final
fillRemainErrorWidget bool
If true, the error widget will fill the remaining space.
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
padding EdgeInsets
The padding around the grid.
final
prependLoadingWidget Widget
The widget that is shown when the data is loading at the beginning of the list.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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