ChatInputField constructor

ChatInputField({
  1. Key? key,
  2. double buttonRadios = 35,
  3. required String sendMessageHintText,
  4. required String recordingNoteHintText,
  5. TextDirection textDirection = TextDirection.rtl,
  6. BoxDecoration? chatInputFieldDecoration,
  7. Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 25),
  8. IconData sendTextIcon = Icons.send,
  9. required VoidCallback onSlideToCancelRecord,
  10. required dynamic handleRecord(
    1. ChatMessage? audioMessage,
    2. bool canceled
    ),
  11. required dynamic onTextSubmit(
    1. ChatMessage text
    ),
  12. required dynamic handleImageSelect(
    1. ChatMessage? imageMessage
    ),
  13. required Color chatInputFieldColor,
  14. required String imageAttachmentFromGalleryText,
  15. required String imageAttachmentFromCameraText,
  16. required String imageAttachmentCancelText,
  17. required bool disableInput,
  18. EdgeInsets? chatInputFieldPadding,
  19. Icon? imageAttachmentFromGalleryIcon,
  20. Icon? imageAttachmentFromCameraIcon,
  21. Icon? imageAttachmentCancelIcon,
  22. TextStyle? imageAttachmentTextStyle,
  23. dynamic attachmentClick(
    1. BuildContext context
    )?,
})

Implementation

ChatInputField({
  Key? key,
  this.buttonRadios = 35,
  required this.sendMessageHintText,
  required this.recordingNoteHintText,
  this.textDirection = TextDirection.rtl,
  this.chatInputFieldDecoration,
  this.sliderButtonContent = const Icon(
    Icons.chevron_right,
    color: Colors.white,
    size: 25,
  ),
  this.sendTextIcon = Icons.send,
  required this.onSlideToCancelRecord,
  required this.handleRecord,
  required this.onTextSubmit,
  required this.handleImageSelect,
  required this.chatInputFieldColor,
  required this.imageAttachmentFromGalleryText,
  required this.imageAttachmentFromCameraText,
  required this.imageAttachmentCancelText,
  required this.disableInput,
  this.chatInputFieldPadding,
  this.imageAttachmentFromGalleryIcon,
  this.imageAttachmentFromCameraIcon,
  this.imageAttachmentCancelIcon,
  this.imageAttachmentTextStyle,
  this.attachmentClick,
});