DDSChip constructor

const DDSChip({
  1. Key? key,
  2. required String text,
  3. ChipShape shape = ChipShape.rectangle,
  4. ChipSize size = ChipSize.medium,
  5. ChipType type = ChipType.filled,
  6. Widget? startIcon,
  7. double? width,
  8. double? height,
  9. Widget? endIcon,
  10. Color? backgroundColor,
  11. Color? borderColor,
  12. Color? textColor,
  13. Border? border,
  14. TextStyle? labelStyle,
  15. double? iconTextGap,
  16. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(10, 4, 10, 4),
  17. EdgeInsetsGeometry iconPadding = const EdgeInsets.only(right: 8.0),
  18. Color? softBackgroundColor,
  19. 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);