CrossmintNftCollectionView class
Grid view of NFT cards for a wallet's NFT collection.
Pass the items from CrossmintWalletNftPage.items to nfts.
By default every item is rendered with the Material-based CrossmintNftCard. Headless consumers that want to render items with their own design system can supply an itemBuilder — the collection view still owns the grid delegate, padding, and empty-state handling, but each tile is built by the supplied callback.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CrossmintNftCollectionView
Constructors
-
CrossmintNftCollectionView({Key? key, required List<
CrossmintNftRecord> nfts, void onNftTap(CrossmintNftRecord nft)?, int crossAxisCount = 2, WidgetBuilder? emptyBuilder, CrossmintNftItemBuilder? itemBuilder, EdgeInsets? padding}) -
const
Properties
- crossAxisCount → int
-
Number of columns in the grid. Defaults to
2.final - emptyBuilder → WidgetBuilder?
-
Optional builder for the empty state, rendered when nfts is empty.
When
null, a built-in placeholder is rendered.final - hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder → CrossmintNftItemBuilder?
-
Optional per-item builder. When
null, items render with the Material CrossmintNftCard (React Native SDK parity default). When non-null, the builder is invoked for every NFT in nfts; the suppliedonTapcallback is wired to onNftTap so consumers do not have to re-derive the tap wiring in their custom card.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
nfts
→ List<
CrossmintNftRecord> -
NFT records to render in the grid. Pass
CrossmintWalletNftPage.items here. When the list is empty the
emptyBuilder (or the built-in empty state) is rendered instead.
final
- onNftTap → void Function(CrossmintNftRecord nft)?
-
Called when the user taps a card. When
null, cards are not tappable and no ripple is rendered. Both the default CrossmintNftCard and any custom itemBuilder receive the wiredonTapautomatically.final - padding → EdgeInsets?
-
Padding applied to the grid. Defaults to
EdgeInsets.all(12)whennull.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