ChatScreen constructor
ChatScreen({
- Key? key,
- Color? senderColor,
- Color? inActiveAudioSliderColor,
- Color? activeAudioSliderColor,
- required List<
ChatMessage> messages, - ScrollController? scrollController,
- String sendMessageHintText = 'Enter message here',
- String recordinNoteHintText = 'Now Recording',
- String imageAttachmentFromGalary = 'From Galary',
- String imageAttachmentFromCamery = 'From Camera',
- String imageAttachmentCancelText = 'Cancel',
- Color containerColor = const Color(0xFFCFD8DC),
- Color imageAttachmentTextColor = const Color(0xFF255965),
- dynamic handleRecord()?,
- dynamic handleImageSelect(
- XFile
- VoidCallback? onSlideToCancelRecord,
- TextEditingController? textEditingController,
- bool disableInput = false,
- dynamic onSubmit(
- 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);