BubbleLinkPreview constructor
const
BubbleLinkPreview({
- Key? key,
- required String url,
- String? title,
- String? description,
- String? imageUrl,
- String? text,
- double bubbleRadius = defaultBubbleRadiusLinkPreview,
- bool isSender = true,
- Color color = Colors.white70,
- Color? previewBackgroundColor,
- bool tail = true,
- bool sent = false,
- bool delivered = false,
- bool seen = false,
- TextStyle textStyle = const TextStyle(color: Colors.black87, fontSize: 16),
- TextStyle? titleTextStyle,
- TextStyle? descriptionTextStyle,
- TextStyle? urlTextStyle,
- BoxConstraints? constraints,
- Widget? leading,
- Widget? trailing,
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- VoidCallback? onLinkTap,
- double? imageHeight = 150,
- 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);