GalleryHeader constructor
const
GalleryHeader({
- Key? key,
- required Message message,
- int currentIndex = 0,
- bool showBackButton = true,
- VoidCallback? onBackPressed,
- VoidCallback? onShowMessage,
- VoidCallback? onTitleTap,
- VoidCallback? onImageTap,
- String userName = '',
- String sentAt = '',
- Color? backgroundColor,
- AttachmentActionsBuilder? attachmentActionsModalBuilder,
Creates a channel header
Implementation
const GalleryHeader({
Key? key,
required this.message,
this.currentIndex = 0,
this.showBackButton = true,
this.onBackPressed,
this.onShowMessage,
this.onTitleTap,
this.onImageTap,
this.userName = '',
this.sentAt = '',
this.backgroundColor,
this.attachmentActionsModalBuilder,
}) : preferredSize = const Size.fromHeight(kToolbarHeight),
super(key: key);