ChatInputField constructor
ChatInputField({
- Key? key,
- double buttonRadios = 35,
- required String sendMessageHintText,
- required String recordingNoteHintText,
- TextDirection textDirection = TextDirection.rtl,
- BoxDecoration? chatInputFieldDecoration,
- Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 25),
- IconData sendTextIcon = Icons.send,
- required VoidCallback onSlideToCancelRecord,
- required dynamic handleRecord(
- ChatMessage? audioMessage,
- bool canceled
- required dynamic onTextSubmit(
- ChatMessage text
- required dynamic handleImageSelect(
- ChatMessage? imageMessage
- required Color chatInputFieldColor,
- required String imageAttachmentFromGalleryText,
- required String imageAttachmentFromCameraText,
- required String imageAttachmentCancelText,
- required bool disableInput,
- EdgeInsets? chatInputFieldPadding,
- Icon? imageAttachmentFromGalleryIcon,
- Icon? imageAttachmentFromCameraIcon,
- Icon? imageAttachmentCancelIcon,
- TextStyle? imageAttachmentTextStyle,
- dynamic attachmentClick(
- 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,
});