DDSLabel constructor
const
DDSLabel({
- Key? key,
- required LabelsType type,
- required String text,
- required LabelSize size,
- bool required = false,
- Color? backgroundColor,
- Color? borderColor,
- Color? labelColor,
- Color? cursorColor,
- LabelShape shape = LabelShape.rectangle,
- Icon? prefixIcon,
- Icon? suffixIcon,
- Color? softContainerColor,
- double? width,
- double? height,
- String? errorText,
- TextAlign? textAlign,
- double? fontSize = 20,
- FontWeight? fontWeight = FontWeight.bold,
- double? letterSpacing,
- double? lineHeight,
- TextStyle? style,
- Color? color,
- Color? requiredSymbolColor,
- LabelsVariant variant = LabelsVariant.filled,
Implementation
const DDSLabel({
Key? key,
required this.type,
required this.text,
required this.size,
this.required = false,
this.backgroundColor,
this.borderColor,
this.labelColor,
this.cursorColor,
this.shape = LabelShape.rectangle,
this.prefixIcon,
this.suffixIcon,
this.softContainerColor,
this.width,
this.height,
this.errorText,
this.textAlign,
this.fontSize = 20,
this.fontWeight = FontWeight.bold,
this.letterSpacing,
this.lineHeight,
this.style,
this.color,
this.requiredSymbolColor,
this.variant = LabelsVariant.filled,
}) : super(key: key);