LinearGradientContainer constructor

const LinearGradientContainer({
  1. Key? key,
  2. Widget? child,
  3. BorderRadius? borderRadius,
  4. double? width,
  5. double? height,
  6. EdgeInsetsGeometry? padding,
  7. VoidCallback? onTap,
  8. BoxShape shape = BoxShape.rectangle,
  9. EdgeInsetsGeometry? margin,
  10. List<Color> colors = const [Colors.blue, Colors.purple],
  11. List<double>? stops,
  12. AlignmentGeometry begin = Alignment.topLeft,
  13. AlignmentGeometry end = Alignment.bottomRight,
  14. Gradient? gradient,
})

Implementation

const LinearGradientContainer({
  super.key,
  super.child,
  super.borderRadius,
  super.width,
  super.height,
  super.padding,
  super.onTap,
  super.shape,
  super.margin,
  this.colors = const [Colors.blue, Colors.purple],
  this.stops,
  this.begin = Alignment.topLeft,
  this.end = Alignment.bottomRight,
  this.gradient,
});