BubbleContainer constructor

const BubbleContainer({
  1. Key? key,
  2. required String text,
  3. double bubbleRadius = 25,
  4. Color color = Colors.white70,
  5. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 17),
  6. required BubbleAlignment bubbleAlignment,
  7. EdgeInsets? padding,
  8. EdgeInsets? margin,
})

Creates a chat bubble.

Implementation

const BubbleContainer({
  Key? key,
  required this.text,
  this.bubbleRadius = 25,
  this.color = Colors.white70,
  this.textStyle = const TextStyle(
    color: Colors.white,
    fontSize: 17,
  ),
  required this.bubbleAlignment,
  this.padding,
  this.margin,
}) : super(key: key);