StreamGalleryAttachment class
Constructs a gallery of images, videos, and gifs from a list of attachments.
This widget uses a FlexGrid
to display the attachments in a grid format.
The grid will automatically resize based on the size of the attachment.
See also:
StreamImageAttachmentThumbnail
, which is used to display the image thumbnails.StreamVideoAttachmentThumbnail
, which is used to display the video thumbnails.StreamGiphyAttachmentThumbnail
, which is used to display the gif thumbnails.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- StreamGalleryAttachment
Constructors
-
StreamGalleryAttachment({Key? key, required List<
Attachment> attachments, required Message message, ShapeBorder? shape, BoxConstraints constraints = const BoxConstraints(), double spacing = 2.0, double runSpacing = 2.0, required IndexedWidgetBuilder itemBuilder}) -
Constructs a gallery of images, videos, and gifs from a list of attachments.
const
Properties
-
attachments
→ List<
Attachment> -
List of attachments to show
final
- constraints → BoxConstraints
-
The constraints of the attachments
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder → IndexedWidgetBuilder
-
Item builder for the gallery.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- message → Message
-
The Message that the images are attached to
final
- runSpacing → double
-
How much space to place between the runs themselves in the cross axis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder?
-
The shape of the attachment.
final
- spacing → double
-
How much space to place between children in a run in the main axis.
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}) → 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