StreamGalleryHeader constructor
const
StreamGalleryHeader({
- Key? key,
- required Message message,
- required Attachment attachment,
- bool showBackButton = true,
- VoidCallback? onBackPressed,
- VoidCallback? onShowMessage,
- VoidCallback? onReplyMessage,
- VoidCallback? onTitleTap,
- VoidCallback? onImageTap,
- String userName = '',
- String sentAt = '',
- Color? backgroundColor,
- AttachmentActionsBuilder? attachmentActionsModalBuilder,
- 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);