StreamGalleryHeader constructor

const StreamGalleryHeader({
  1. Key? key,
  2. required Message message,
  3. required Attachment attachment,
  4. bool showBackButton = true,
  5. VoidCallback? onBackPressed,
  6. VoidCallback? onShowMessage,
  7. VoidCallback? onReplyMessage,
  8. VoidCallback? onTitleTap,
  9. VoidCallback? onImageTap,
  10. String userName = '',
  11. String sentAt = '',
  12. Color? backgroundColor,
  13. AttachmentActionsBuilder? attachmentActionsModalBuilder,
  14. double elevation = 1.0,
})

Header/AppBar widget for media display screen

Implementation

const StreamGalleryHeader({
  super.key,
  required this.message,
  required this.attachment,
  this.showBackButton = true,
  this.onBackPressed,
  this.onShowMessage,
  this.onReplyMessage,
  this.onTitleTap,
  this.onImageTap,
  this.userName = '',
  this.sentAt = '',
  this.backgroundColor,
  this.attachmentActionsModalBuilder,
  this.elevation = 1.0,
}) : preferredSize = const Size.fromHeight(kToolbarHeight);