DDSChip constructor
const
DDSChip({
- Key? key,
- required String text,
- ChipShape shape = ChipShape.rectangle,
- ChipSize size = ChipSize.medium,
- ChipType type = ChipType.filled,
- Widget? startIcon,
- double? width,
- double? height,
- Widget? endIcon,
- Color? backgroundColor,
- Color? borderColor,
- Color? textColor,
- Border? border,
- TextStyle? labelStyle,
- double? iconTextGap,
- EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(10, 4, 10, 4),
- EdgeInsetsGeometry iconPadding = const EdgeInsets.only(right: 8.0),
- Color? softBackgroundColor,
- Alignment? textAlignment,
Implementation
const DDSChip({
Key? key,
required this.text,
this.shape = ChipShape.rectangle,
this.size = ChipSize.medium,
this.type = ChipType.filled,
this.startIcon,
this.width,
this.height,
this.endIcon,
this.backgroundColor,
this.borderColor,
this.textColor,
this.border,
this.labelStyle,
this.iconTextGap,
this.padding = const EdgeInsets.fromLTRB(10, 4, 10, 4),
this.iconPadding = const EdgeInsets.only(right: 8.0),
this.softBackgroundColor,
this.textAlignment,
}) : super(key: key);