ChatScreen constructor
const
ChatScreen({
- Key? key,
- double? height,
- bool isScreen = false,
- Color outgoingMessageColor = CustomColors.outgoingMessageColor,
- Color incomingMessageColor = CustomColors.incomingMessageColor,
- Color senderAvatarColor = CustomColors.defaultColor,
- Color receiverAvatarColor = CustomColors.defaultColor,
- String title = 'Messages',
- String? hintText,
Widget to display chats as a screen or a bottom sheet.
height
specifies the height of bottom sheet/screen,
isScreen
toggles the screen behaviour to adapt for screen or bottom sheet,
outgoingMessageColor
defines the color of outgoing message color,
incomingMessageColor
defines the color of incoming message color.
title
specifies the title text to be displayed.
hintText
specifies the hint text to be displayed in the input box.
Implementation
const ChatScreen(
{Key? key,
this.height,
this.isScreen = false,
this.outgoingMessageColor = CustomColors.outgoingMessageColor,
this.incomingMessageColor = CustomColors.incomingMessageColor,
this.senderAvatarColor = CustomColors.defaultColor,
this.receiverAvatarColor = CustomColors.defaultColor,
this.title = 'Messages',
this.hintText})
: super(key: key);