CcBubbleWidget constructor

CcBubbleWidget({
  1. Key? key,
  2. Widget? child,
  3. double? width,
  4. double? height,
  5. Color? bubbleColor = Colors.white,
  6. double bubbleRadius = 8.0,
  7. Color? bubbleShadowColor = Colors.grey,
  8. double bubbleShadowRadius = 32.0,
  9. double? bubbleTriangleLength = 12.0,
  10. Offset? bubbleTrianglePointOffset,
  11. double? bubbleTriangleTranslation,
  12. CcBubbleArrowDirection bubbleTriangleDirection = CcBubbleArrowDirection.left,
  13. bool isTriangleOccupiedSpace = true,
})

Implementation

CcBubbleWidget({
  Key? key,
  this.child,
  this.width,
  this.height,
  this.bubbleColor = Colors.white,
  this.bubbleRadius = 8.0,
  this.bubbleShadowColor = Colors.grey,
  this.bubbleShadowRadius = 32.0,
  this.bubbleTriangleLength = 12.0,
  this.bubbleTrianglePointOffset, // null we will caculate a Offset value base on the length, here is Offset(-12.0, -6.0) for arrow left,
  this.bubbleTriangleTranslation,
  this.bubbleTriangleDirection = CcBubbleArrowDirection.left,
  this.isTriangleOccupiedSpace = true, // if true we ask for more space using margin
}) : super(key: key);