ChatScreen constructor

const ChatScreen({
  1. Key? key,
  2. required List<Message> messages,
  3. required ScrollController scrollController,
  4. Color activeSendIconColor = ColorsPackage.primary,
  5. required void onSubmitMessage(
    1. String message
    ),
  6. int unreadMsgRealTime = 0,
  7. String otherUserName = "",
  8. String otherUserImage = "",
  9. String textHint = '',
  10. TextStyle? userNameStyle,
  11. Color chatAppBackgroundColor = ColorsPackage.whiteColor,
  12. Color fillColorTextFeild = const Color.fromARGB(255, 237, 241, 252),
  13. Color textColor = ColorsPackage.boldTextColor,
  14. Color myMessageBackGrounColor = ColorsPackage.primary,
  15. Color otherMessageBackGrounColor = ColorsPackage.darkGrey,
  16. 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});