ChatScreen constructor
const
ChatScreen({
- required String senderId,
- required String receiverId,
- DecorationImage? backgroundImage,
- PreferredSizeWidget? appBar,
- Color? backgroundColor,
- bool enableDivider = true,
- bool enableDeleteMessage = true,
- Widget sendMessageBuilder(
- BuildContext context, {
- void onTypingMessage(
- String text
- required void sendMediaMessage(
- String mediaPath,
- MessageType type
- required void sendMessage(
- String txt
- Widget messageBubbleBuilder({})?,
- Future<
String> mediaUploaderFunction(- String mediaPath
- int? intialChatLimit,
- dynamic getLastSeen(
- DateTime lastSeen
- dynamic onDeleteMessage()?,
- Widget dividerBuilder(
- String label
- bool enableTypingStatus = false,
- Widget typingIdicationBuilder()?,
- Key? key,
- void onMessageSelected({})?,
- EdgeInsets? listPadding,
Creates a ChatScreen widget. deleteMessage feature is enabled by default.
Implementation
const ChatScreen({
required this.senderId,
required this.receiverId,
this.backgroundImage,
this.appBar,
this.backgroundColor,
this.enableDivider = true,
this.enableDeleteMessage = true,
this.sendMessageBuilder,
this.messageBubbleBuilder,
this.mediaUploaderFunction,
this.intialChatLimit,
this.getLastSeen,
this.onDeleteMessage,
this.dividerBuilder,
this.enableTypingStatus = false,
this.typingIdicationBuilder,
Key? key,
this.onMessageSelected,
this.listPadding,
}) : super(key: key);