AppChip constructor

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

Implementation

const AppChip({
  required this.label,
  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,
  super.key,
});