BubbleNormal constructor
BubbleNormal({
- Key? key,
- required String text,
- BoxConstraints? constraints,
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
- double bubbleRadius = BUBBLE_RADIUS,
- bool isSender = true,
- Color color = Colors.white70,
- bool tail = true,
- bool sent = false,
- bool delivered = false,
- bool seen = false,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- VoidCallback? onLongPress,
- Widget? leading,
- Widget? trailing,
- TextStyle textStyle = const TextStyle(color: Colors.black87, fontSize: 16),
Implementation
BubbleNormal({
Key? key,
required this.text,
this.constraints,
this.margin = EdgeInsets.zero,
this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
this.bubbleRadius = BUBBLE_RADIUS,
this.isSender = true,
this.color = Colors.white70,
this.tail = true,
this.sent = false,
this.delivered = false,
this.seen = false,
this.onTap,
this.onDoubleTap,
this.onLongPress,
this.leading,
this.trailing,
this.textStyle = const TextStyle(
color: Colors.black87,
fontSize: 16,
),
}) : super(key: key);