ChatRoomView constructor

const ChatRoomView({
  1. Key? key,
  2. required UserModel senderMember,
  3. required UserModel receiverMember,
  4. String? smsText,
  5. Color iconColor = Colors.grey,
  6. Color textFieldBorderColor = Colors.blue,
  7. int imageQuality = 25,
  8. String defaultImage = "https://github.com/mudassir060/firebase_realtime_chat/blob/main/assets/profile.jpeg?raw=true",
  9. AppBar? appBar,
  10. bool imageDownloadButton = false,
  11. Color ownerBubbleColor = const Color.fromARGB(255, 199, 249, 245),
  12. Color otherBubbleColor = const Color.fromARGB(255, 250, 236, 193),
})

Implementation

const ChatRoomView({
  super.key,
  required this.senderMember,
  required this.receiverMember,
  this.smsText,
  this.iconColor = Colors.grey,
  this.textFieldBorderColor = Colors.blue,
  this.imageQuality = 25,
  this.defaultImage =
      "https://github.com/mudassir060/firebase_realtime_chat/blob/main/assets/profile.jpeg?raw=true",
  this.appBar,
  this.imageDownloadButton = false,
  this.ownerBubbleColor = const Color.fromARGB(255, 199, 249, 245),
  this.otherBubbleColor = const Color.fromARGB(255, 250, 236, 193),
});