CustomChip constructor

const CustomChip({
  1. required Widget label,
  2. Key? key,
  3. Widget? avatar,
  4. TextStyle? labelStyle,
  5. EdgeInsetsGeometry? labelPadding,
  6. Widget? deleteIcon,
  7. VoidCallback? onDeleted,
  8. Color? deleteIconColor,
  9. String? deleteButtonTooltipMessage,
  10. BorderSide? side,
  11. OutlinedBorder? shape,
  12. Clip clipBehavior = Clip.none,
  13. FocusNode? focusNode,
  14. bool autofocus = false,
  15. Color? backgroundColor,
  16. EdgeInsetsGeometry? padding,
  17. VisualDensity? visualDensity,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. double? elevation,
  20. Color? shadowColor,
  21. Color? surfaceTintColor,
  22. IconThemeData? iconTheme,
  23. BoxConstraints? avatarBoxConstraints,
  24. BoxConstraints? deleteIconBoxConstraints,
})

Chip 标签组件

Implementation

const CustomChip({
  required this.label,
  super.key,
  this.avatar,
  this.labelStyle,
  this.labelPadding,
  this.deleteIcon,
  this.onDeleted,
  this.deleteIconColor,
  this.deleteButtonTooltipMessage,
  this.side,
  this.shape,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.autofocus = false,
  this.backgroundColor,
  this.padding,
  this.visualDensity,
  this.materialTapTargetSize,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.iconTheme,
  this.avatarBoxConstraints,
  this.deleteIconBoxConstraints,
});