AppChip constructor
const
AppChip({
- required String label,
- TextStyle? labelStyle,
- String? tooltip,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- VoidCallback? onSecondaryTap,
- VoidCallback? onDelete,
- bool selected = false,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 6, horizontal: 8),
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8)),
- Widget? avatar,
- Widget? trailing,
- WidgetStateProperty<
Color?> ? color, - Color? backgroundColor,
- WidgetStateProperty<
Color?> ? onColor, - Color? onBackgroundColor,
- IconData checkIcon = Icons.check,
- Color? borderColor,
- Widget? deleteIcon,
- bool expandLabel = false,
- 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,
});