GradientContainer constructor

const GradientContainer({
  1. Key? key,
  2. Gradient gradient = const LinearGradient(begin: Alignment.bottomLeft, end: Alignment.topRight, colors: [Colors.red, Colors.white], stops: [.5, 1]),
  3. bool gradientOnBorders = false,
  4. Color? color,
  5. Color? borderColor,
  6. double? borderWidth,
  7. BorderRadius? borderRadius,
  8. BoxConstraints? constraints,
  9. Size? size,
  10. bool isExpanded = false,
  11. MainAxisAlignment contentAlignment = MainAxisAlignment.center,
  12. EdgeInsetsGeometry padding = EdgeInsets.zero,
  13. String? label,
  14. int labelMaxLines = 1,
  15. double labelFontSize = 15,
  16. Color labelColor = Colors.black,
  17. Widget? child,
})

Implementation

const GradientContainer(
    {super.key,
    this.gradient = const LinearGradient(
        begin: Alignment.bottomLeft,
        end: Alignment.topRight,
        colors: [
          Colors.red,
          Colors.white,
        ],
        stops: [
          .5,
          1
        ]),
    this.gradientOnBorders = false,
    this.color,
    this.borderColor,
    this.borderWidth,
    this.borderRadius,
    this.constraints,
    this.size,
    this.isExpanded = false,
    this.contentAlignment = MainAxisAlignment.center,
    this.padding = EdgeInsets.zero,
    this.label,
    this.labelMaxLines = 1,
    this.labelFontSize = 15,
    this.labelColor = Colors.black,
    this.child});