ChatScreen constructor

const ChatScreen({
  1. Key? key,
  2. Widget? fab,
  3. bool chatBoxBorder = true,
  4. bool refocusOnSend = true,
  5. bool autofocus = true,
  6. FocusNode? chatBoxFocusNode,
  7. Duration? messageGroupDistance,
  8. int? maxMessageLength,
  9. bool gutter = true,
  10. Widget? header,
  11. CrossAxisAlignment avatarAlignment = CrossAxisAlignment.start,
  12. Widget placeholder = const Text("Send a message"),
  13. int? streamBuffer,
  14. ChatStyle? style,
  15. Iterable<MenuItem> onMessageMenu(
    1. AbstractChatMessage message
    )?,
  16. ValueChanged<AbstractChatMessage>? onMessageTap,
  17. String messageTimeFormatter(
    1. DateTime
    ) = _formatTime,
  18. required ChatProvider provider,
  19. required String sender,
})

Implementation

const ChatScreen(
    {super.key,
    this.fab,
    this.chatBoxBorder = true,
    this.refocusOnSend = true,
    this.autofocus = true,
    this.chatBoxFocusNode,
    this.messageGroupDistance,
    this.maxMessageLength,
    this.gutter = true,
    this.header,
    this.avatarAlignment = CrossAxisAlignment.start,
    this.placeholder = const Text("Send a message"),
    this.streamBuffer,
    this.style,
    this.onMessageMenu,
    this.onMessageTap,
    this.messageTimeFormatter = _formatTime,
    required this.provider,
    required this.sender});