BubbleNormal constructor

BubbleNormal({
  1. Key? key,
  2. required String text,
  3. BoxConstraints? constraints,
  4. EdgeInsets margin = EdgeInsets.zero,
  5. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
  6. double bubbleRadius = BUBBLE_RADIUS,
  7. bool isSender = true,
  8. Color color = Colors.white70,
  9. bool tail = true,
  10. bool sent = false,
  11. bool delivered = false,
  12. bool seen = false,
  13. VoidCallback? onTap,
  14. VoidCallback? onDoubleTap,
  15. VoidCallback? onLongPress,
  16. Widget? leading,
  17. Widget? trailing,
  18. 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);