BubbleButton constructor
const
BubbleButton({
- Key? key,
- double size = 20.0,
- required BubbleBuilder bubbleBuilder,
- double? bubblesSize,
- double? circleSize,
- bool initValue = false,
- Duration duration = const Duration(milliseconds: 1000),
- BubbleColor bubbleColor = const BubbleColor(dotFirstColor: Colors.blue, dotSecondColor: Colors.lightBlue, dotThirdColor: Colors.lightBlueAccent, dotLastColor: Colors.lightGreenAccent),
- CircleColor circleColor = const CircleColor(start: Colors.lightBlueAccent, end: Colors.lightGreenAccent),
- BubbleCallback? onTap,
Implementation
const BubbleButton({
super.key,
this.size = 20.0,
required this.bubbleBuilder,
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;