GiphyGridView class
Customizable implementation of the Giphy Grid only solution.
This widget provides a customizable grid view of Giphy content, including options for cell padding, preview rendition type, content request, orientation, and more. It also supports callbacks for content updates, media selection, and scrolling events.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GiphyGridView
Constructors
- GiphyGridView.new({Key? key, double cellPadding = 8, GiphyClipsRendition clipsPreviewRenditionType = GiphyClipsRendition.fixedWidth, required GiphyContentRequest content, bool disableEmojiVariations = false, bool fixedSizeCells = false, GiphyDirection orientation = GiphyDirection.vertical, GiphyRendition renditionType = GiphyRendition.fixedWidth, int? spanCount, bool showCheckeredBackground = false, GiphyTheme theme = GiphyTheme.automaticTheme, dynamic onContentUpdate(int resultCount)?, dynamic onMediaSelect(GiphyMedia media)?, dynamic onScroll(double offset)?})
-
Constructs a GiphyGridView.
const
Properties
- cellPadding → double
-
Spacing between rendered GIFs.
final
- clipsPreviewRenditionType → GiphyClipsRendition
-
The rendition type for Giphy clips preview.
final
- content → GiphyContentRequest
-
An object describing a content request to the Giphy API.
final
- disableEmojiVariations → bool
-
If true, the emoji variations drawer is not rendered.
final
- fixedSizeCells → bool
-
Display content in equally sized cells (for stickers only).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onContentUpdate → dynamic Function(int resultCount)?
-
Callback for content updates.
final
- onMediaSelect → dynamic Function(GiphyMedia media)?
-
Callback for media selection.
final
- onScroll → dynamic Function(double offset)?
-
Callback for scroll events.
final
- orientation → GiphyDirection
-
Tells the scroll direction of the grid.
final
- renditionType → GiphyRendition
-
A rendition type for the grid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCheckeredBackground → bool
-
Show/Hide checkered background for stickers in the grid.
final
- spanCount → int?
-
Number of lanes in the grid.
final
- theme → GiphyTheme
-
The theme for the Giphy grid view.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GiphyGridView> -
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, 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