ChatScreen constructor
const
ChatScreen({
- Key? key,
- Widget? fab,
- Duration messageGroupDistance = const Duration(minutes: 5),
- int? maxMessageLength,
- bool gutter = false,
- Widget? header,
- CrossAxisAlignment avatarAlignment = CrossAxisAlignment.start,
- String placeholder = "Send a message",
- int? streamBuffer,
- ChatStyle? style,
- Iterable<
MenuItem> onMessageMenu(- AbstractChatMessage message
- ValueChanged<
AbstractChatMessage> ? onMessageTap, - String messageTimeFormatter() = _formatTime,
- required ChatProvider provider,
- required String sender,
Implementation
const ChatScreen(
{super.key,
this.fab,
this.messageGroupDistance = const Duration(minutes: 5),
this.maxMessageLength,
this.gutter = false,
this.header,
this.avatarAlignment = CrossAxisAlignment.start,
this.placeholder = "Send a message",
this.streamBuffer,
this.style,
this.onMessageMenu,
this.onMessageTap,
this.messageTimeFormatter = _formatTime,
required this.provider,
required this.sender});