GalleryAttachmentBuilder constructor

const GalleryAttachmentBuilder({
  1. ShapeBorder? shape,
  2. EdgeInsetsGeometry padding = const EdgeInsets.all(2),
  3. double spacing = 2,
  4. double runSpacing = 2,
  5. BoxConstraints constraints = _kDefaultGalleryConstraints,
  6. StreamAttachmentWidgetTapCallback? onAttachmentTap,
})

A widget builder for AttachmentType.image, AttachmentType.video and AttachmentType.giphy attachment types.

This builder will render a StreamGalleryAttachment widget when the message has more than one image or video or giphy attachment.

Implementation

const GalleryAttachmentBuilder({
  this.shape,
  this.padding = const EdgeInsets.all(2),
  this.spacing = 2,
  this.runSpacing = 2,
  this.constraints = _kDefaultGalleryConstraints,
  this.onAttachmentTap,
});