ChatImageMessage constructor

const ChatImageMessage({
  1. Key? key,
  2. required ImageMessage message,
  3. required int index,
  4. ImageProvider<Object>? customImageProvider,
  5. Map<String, String>? headers,
  6. BorderRadiusGeometry? borderRadius,
  7. BoxConstraints? constraints = const BoxConstraints(maxHeight: 300),
  8. Widget? overlay,
  9. Color? placeholderColor,
  10. Color? loadingOverlayColor,
  11. Color? loadingIndicatorColor,
  12. Color? uploadOverlayColor,
  13. Color? uploadIndicatorColor,
  14. TextStyle? timeStyle,
  15. Color? timeBackground,
  16. bool showTime = true,
  17. bool showStatus = true,
  18. TimeAndStatusPosition timeAndStatusPosition = TimeAndStatusPosition.end,
  19. Decoration? decoration,
})

Creates a widget to display an image message.

Implementation

const ChatImageMessage({
  super.key,
  required this.message,
  required this.index,
  this.customImageProvider,
  this.headers,
  this.borderRadius,
  this.constraints = const BoxConstraints(maxHeight: 300),
  this.overlay,
  this.placeholderColor,
  this.loadingOverlayColor,
  this.loadingIndicatorColor,
  this.uploadOverlayColor,
  this.uploadIndicatorColor,
  this.timeStyle,
  this.timeBackground,
  this.showTime = true,
  this.showStatus = true,
  this.timeAndStatusPosition = TimeAndStatusPosition.end,
  this.decoration,
});