GradientContainer constructor
const
GradientContainer({
- Key? key,
- Gradient gradient = const LinearGradient(begin: Alignment.bottomLeft, end: Alignment.topRight, colors: [Colors.red, Colors.white], stops: [.5, 1]),
- bool gradientOnBorders = false,
- Color? color,
- Color? borderColor,
- double? borderWidth,
- BorderRadius? borderRadius,
- BoxConstraints? constraints,
- Size? size,
- bool isExpanded = false,
- MainAxisAlignment contentAlignment = MainAxisAlignment.center,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- String? label,
- int labelMaxLines = 1,
- double labelFontSize = 15,
- Color labelColor = Colors.black,
- 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});