ChatScreen constructor

ChatScreen(
  1. {Key? key,
  2. Color? senderColor,
  3. Color? inActiveAudioSliderColor,
  4. Color? activeAudioSliderColor,
  5. required List<ChatMessage> messages,
  6. required ScrollController scrollController,
  7. String sendMessageHintText = 'Enter message here',
  8. String recordingNoteHintText = 'Now Recording',
  9. String imageAttachmentFromGalleryText = 'From Gallery',
  10. String imageAttachmentFromCameraText = 'From Camera',
  11. String imageAttachmentCancelText = 'Cancel',
  12. Color chatInputFieldColor = const Color(0xFFCFD8DC),
  13. TextStyle? imageAttachmentTextStyle,
  14. required dynamic handleRecord(
    1. ChatMessage? audioMessage,
    2. bool canceled
    ),
  15. required dynamic handleImageSelect(
    1. ChatMessage? imageMessage
    ),
  16. VoidCallback? onSlideToCancelRecord,
  17. TextEditingController? textEditingController,
  18. bool disableInput = false,
  19. BoxDecoration? chatInputFieldDecoration,
  20. required dynamic onTextSubmit(
    1. ChatMessage textMessage
    ),
  21. EdgeInsets? chatInputFieldPadding,
  22. Icon? imageAttachmentFromGalleryIcon,
  23. Icon? imageAttachmentFromCameraIcon,
  24. Icon? imageAttachmentCancelIcon,
  25. TextStyle? messageContainerTextStyle,
  26. TextStyle? sendDateTextStyle,
  27. dynamic attachmentClick(
    1. BuildContext context
    )?}
)

Implementation

ChatScreen({
  Key? key,
  this.senderColor,
  this.inActiveAudioSliderColor,
  this.activeAudioSliderColor,
  required this.messages,
  required this.scrollController,
  this.sendMessageHintText = 'Enter message here',
  this.recordingNoteHintText = 'Now Recording',
  this.imageAttachmentFromGalleryText = 'From Gallery',
  this.imageAttachmentFromCameraText = 'From Camera',
  this.imageAttachmentCancelText = 'Cancel',
  this.chatInputFieldColor = const Color(0xFFCFD8DC),
  this.imageAttachmentTextStyle,
  required this.handleRecord,
  required this.handleImageSelect,
  this.onSlideToCancelRecord,
  this.textEditingController,
  this.disableInput = false,
  this.chatInputFieldDecoration,
  required this.onTextSubmit,
  this.chatInputFieldPadding,
  this.imageAttachmentFromGalleryIcon,
  this.imageAttachmentFromCameraIcon,
  this.imageAttachmentCancelIcon,
  this.messageContainerTextStyle,
  this.sendDateTextStyle,
  this.attachmentClick,
}) : super(key: key);