AnimatedGradientContainer constructor
const
AnimatedGradientContainer({
- Key? key,
- List<
Color> colors = const [Colors.purple, Colors.blue, Colors.purple], - List<
double> ? stops = const [0.0, 0.5, 1.0], - AlignmentGeometry begin = Alignment.topLeft,
- AlignmentGeometry end = Alignment.bottomRight,
- Duration duration = const Duration(seconds: 2),
- Widget? child,
- BorderRadius? borderRadius,
- double? width,
- double? height,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- bool animateColors = true,
Implementation
const AnimatedGradientContainer({
super.key,
this.colors = const [Colors.purple, Colors.blue, Colors.purple],
this.stops = const [0.0, 0.5, 1.0],
this.begin = Alignment.topLeft,
this.end = Alignment.bottomRight,
this.duration = const Duration(seconds: 2),
this.child,
this.borderRadius,
this.width,
this.height,
this.padding,
this.margin,
this.animateColors = true,
});