AppChip constructor

const AppChip({
  1. required String label,
  2. TextStyle? labelStyle,
  3. String? tooltip,
  4. VoidCallback? onTap,
  5. VoidCallback? onDoubleTap,
  6. VoidCallback? onSecondaryTap,
  7. VoidCallback? onDelete,
  8. bool selected = false,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 6, horizontal: 8),
  10. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
  11. Widget? avatar,
  12. Widget? trailing,
  13. WidgetStateProperty<Color?>? color,
  14. Color? backgroundColor,
  15. WidgetStateProperty<Color?>? onColor,
  16. Color? onBackgroundColor,
  17. IconData checkIcon = Icons.check,
  18. Color? borderColor,
  19. Widget? deleteIcon,
  20. bool expandLabel = false,
  21. Key? key,
})

Implementation

const AppChip({
  required this.label,
  this.labelStyle,
  this.tooltip,
  this.onTap,
  this.onDoubleTap,
  this.onSecondaryTap,
  this.onDelete,
  this.selected = false,
  this.padding = const EdgeInsets.symmetric(vertical: 6, horizontal: 8),
  this.borderRadius = const BorderRadius.all(Radius.circular(8)),
  this.avatar,
  this.trailing,
  this.color,
  this.backgroundColor,
  this.onColor,
  this.onBackgroundColor,
  this.checkIcon = Icons.check,
  this.borderColor,
  this.deleteIcon,
  this.expandLabel = false,
  super.key,
});