ChatScreen constructor

const ChatScreen({
  1. Key? key,
  2. double? height,
  3. bool isScreen = false,
  4. Color outgoingMessageColor = CustomColors.outgoingMessageColor,
  5. Color incomingMessageColor = CustomColors.incomingMessageColor,
  6. Color senderAvatarColor = CustomColors.defaultColor,
  7. Color receiverAvatarColor = CustomColors.defaultColor,
  8. String title = 'Messages',
  9. 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);