ChatScreen constructor

ChatScreen({
  1. Key? key,
  2. Color? senderColor,
  3. Color? inActiveAudioSliderColor,
  4. Color? activeAudioSliderColor,
  5. required List<ChatMessage> messages,
  6. ScrollController? scrollController,
  7. String sendMessageHintText = 'Enter message here',
  8. String recordinNoteHintText = 'Now Recording',
  9. String imageAttachmentFromGalary = 'From Galary',
  10. String imageAttachmentFromCamery = 'From Camera',
  11. String imageAttachmentCancelText = 'Cancel',
  12. Color containerColor = const Color(0xFFCFD8DC),
  13. Color imageAttachmentTextColor = const Color(0xFF255965),
  14. dynamic handleRecord(
    1. String? path,
    2. bool cnaceled
    )?,
  15. dynamic handleImageSelect(
    1. XFile
    )?,
  16. VoidCallback? onSlideToCancelRecord,
  17. TextEditingController? textEditingController,
  18. bool disableInput = false,
  19. dynamic onSubmit(
    1. String? text
    )?,
})

Implementation

ChatScreen({
  Key? key,
  this.senderColor,
  this.inActiveAudioSliderColor,
  this.activeAudioSliderColor,
  required this.messages,
  this.scrollController,
  this.sendMessageHintText = 'Enter message here',
  this.recordinNoteHintText = 'Now Recording',
  this.imageAttachmentFromGalary = 'From Galary',
  this.imageAttachmentFromCamery = 'From Camera',
  this.imageAttachmentCancelText = 'Cancel',
  this.containerColor = const Color(0xFFCFD8DC),
  this.imageAttachmentTextColor = const Color(0xFF255965),
  this.handleRecord,
  this.handleImageSelect,
  this.onSlideToCancelRecord,
  this.textEditingController,
  this.disableInput = false,
  this.onSubmit,
}) : super(key: key);