ChatView constructor

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

Implementation

const ChatView({
  super.key,
  required this.userData,
  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),
});