BubbleLinkPreview constructor

const BubbleLinkPreview({
  1. Key? key,
  2. required String url,
  3. String? title,
  4. String? description,
  5. String? imageUrl,
  6. String? text,
  7. double bubbleRadius = defaultBubbleRadiusLinkPreview,
  8. bool isSender = true,
  9. Color color = Colors.white70,
  10. Color? previewBackgroundColor,
  11. bool tail = true,
  12. bool sent = false,
  13. bool delivered = false,
  14. bool seen = false,
  15. TextStyle textStyle = const TextStyle(color: Colors.black87, fontSize: 16),
  16. TextStyle? titleTextStyle,
  17. TextStyle? descriptionTextStyle,
  18. TextStyle? urlTextStyle,
  19. BoxConstraints? constraints,
  20. Widget? leading,
  21. Widget? trailing,
  22. EdgeInsets margin = EdgeInsets.zero,
  23. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  24. VoidCallback? onTap,
  25. VoidCallback? onLongPress,
  26. VoidCallback? onLinkTap,
  27. double? imageHeight = 150,
  28. bool showImage = true,
})

Creates a BubbleLinkPreview widget

Implementation

const BubbleLinkPreview({
  Key? key,
  required this.url,
  this.title,
  this.description,
  this.imageUrl,
  this.text,
  this.bubbleRadius = defaultBubbleRadiusLinkPreview,
  this.isSender = true,
  this.color = Colors.white70,
  this.previewBackgroundColor,
  this.tail = true,
  this.sent = false,
  this.delivered = false,
  this.seen = false,
  this.textStyle = const TextStyle(
    color: Colors.black87,
    fontSize: 16,
  ),
  this.titleTextStyle,
  this.descriptionTextStyle,
  this.urlTextStyle,
  this.constraints,
  this.leading,
  this.trailing,
  this.margin = EdgeInsets.zero,
  this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  this.onTap,
  this.onLongPress,
  this.onLinkTap,
  this.imageHeight = 150,
  this.showImage = true,
}) : super(key: key);