BubbleButton constructor

const BubbleButton({
  1. Key? key,
  2. double size = 20.0,
  3. required BubbleBuilder builder,
  4. double? bubblesSize,
  5. double? circleSize,
  6. bool initValue = false,
  7. Duration duration = const Duration(milliseconds: 1000),
  8. BubbleColor bubbleColor = const BubbleColor(dotFirstColor: Colors.blue, dotSecondColor: Colors.lightBlue, dotThirdColor: Colors.lightBlueAccent, dotLastColor: Colors.lightGreenAccent),
  9. CircleColor circleColor = const CircleColor(start: Colors.lightBlueAccent, end: Colors.lightGreenAccent),
  10. BubbleCallback? onTap,
})

Implementation

const BubbleButton({
  super.key,
  this.size = 20.0,
  required this.builder,
  double? bubblesSize,
  double? circleSize,
  this.initValue = false,
  this.duration = const Duration(milliseconds: 1000),
  this.bubbleColor = const BubbleColor(
      dotFirstColor: Colors.blue,
      dotSecondColor: Colors.lightBlue,
      dotThirdColor: Colors.lightBlueAccent,
      dotLastColor: Colors.lightGreenAccent),
  this.circleColor = const CircleColor(
      start: Colors.lightBlueAccent, end: Colors.lightGreenAccent),
  this.onTap,
})  : bubblesSize = bubblesSize ?? size * 2.0,
      circleSize = circleSize ?? size * 0.8;