AnimatedGradientContainer constructor

const AnimatedGradientContainer({
  1. Key? key,
  2. List<Color> colors = const [Colors.purple, Colors.blue, Colors.purple],
  3. List<double>? stops = const [0.0, 0.5, 1.0],
  4. AlignmentGeometry begin = Alignment.topLeft,
  5. AlignmentGeometry end = Alignment.bottomRight,
  6. Duration duration = const Duration(seconds: 2),
  7. Widget? child,
  8. BorderRadius? borderRadius,
  9. double? width,
  10. double? height,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. 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,
});