ChatScreen constructor
const
ChatScreen({
- Key? key,
- required List<
Message> messages, - required ScrollController scrollController,
- Color activeSendIconColor = ColorsPackage.primary,
- required void onSubmitMessage(
- String message
- int unreadMsgRealTime = 0,
- String otherUserName = "",
- String otherUserImage = "",
- String textHint = '',
- TextStyle? userNameStyle,
- Color chatAppBackgroundColor = ColorsPackage.whiteColor,
- Color fillColorTextFeild = const Color.fromARGB(255, 237, 241, 252),
- Color textColor = ColorsPackage.boldTextColor,
- Color myMessageBackGrounColor = ColorsPackage.primary,
- Color otherMessageBackGrounColor = ColorsPackage.darkGrey,
- TextStyle? messageTextStyle,
to display chat
Implementation
const ChatScreen(
{super.key,
required this.messages,
required this.scrollController,
this.activeSendIconColor = ColorsPackage.primary,
required this.onSubmitMessage,
this.unreadMsgRealTime = 0,
this.otherUserName = "",
this.otherUserImage = "",
this.textHint = '',
this.userNameStyle,
this.chatAppBackgroundColor = ColorsPackage.whiteColor,
this.fillColorTextFeild = const Color.fromARGB(255, 237, 241, 252),
this.textColor = ColorsPackage.boldTextColor,
this.myMessageBackGrounColor = ColorsPackage.primary,
this.otherMessageBackGrounColor = ColorsPackage.darkGrey,
this.messageTextStyle});