MovingBackground constructor
const
MovingBackground({
- Key? key,
- Widget? child,
- Color? backgroundColor,
- AnimationType animationType = AnimationType.mixed,
- Duration? duration = const Duration(seconds: 15),
- required List<
MovingCircle> circles,
Creates a MovingBackground widget.
The child is an optional widget that can be placed on top of the moving background. The backgroundColor is the color of the background, defaulting to white if not provided. The circles is a list of MovingCircle widgets that define the circles on the background.
Implementation
const MovingBackground({
super.key,
this.child,
this.backgroundColor,
this.animationType=AnimationType.mixed,
this.duration=const Duration(seconds: 15),
required this.circles,
});