ChatInputField constructor

ChatInputField({
  1. Key? key,
  2. double height = 70,
  3. required String sendMessageHintText,
  4. required String recordinNoteHintText,
  5. Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 25),
  6. IconData sendTextIcon = Icons.send,
  7. required VoidCallback onSlideToCancelRecord,
  8. dynamic handleRecord(
    1. String? path,
    2. bool cnaceled
    )?,
  9. dynamic onSubmit(
    1. String? text
    )?,
  10. required TextEditingController textController,
  11. required dynamic handleImageSelect(
    1. XFile
    ),
  12. required Color containerColor,
  13. required String imageAttachmentFromGalary,
  14. required String imageAttachmentFromCamery,
  15. required String imageAttachmentCancelText,
  16. required Color imageAttachmentTextColor,
  17. required bool disableInput,
})

Implementation

ChatInputField({
  Key? key,
  this.height = 70,
  required this.sendMessageHintText,
  required this.recordinNoteHintText,
  this.sliderButtonContent = const Icon(
    Icons.chevron_right,
    color: Colors.white,
    size: 25,
  ),
  this.sendTextIcon = Icons.send,
  required this.onSlideToCancelRecord,
  this.handleRecord,
  this.onSubmit,
  required this.textController,
  required this.handleImageSelect,
  required this.containerColor,
  required this.imageAttachmentFromGalary,
  required this.imageAttachmentFromCamery,
  required this.imageAttachmentCancelText,
  required this.imageAttachmentTextColor,
  required this.disableInput,
}) : assert(height >= 25);