GlassChip constructor
const
GlassChip({
- required String label,
- Key? key,
- IconData? icon,
- VoidCallback? onTap,
- VoidCallback? onDeleted,
- bool selected = false,
- Color? selectedColor,
- IconData deleteIcon = CupertinoIcons.xmark_circle_fill,
- double deleteIconSize = 16.0,
- double iconSize = 16.0,
- Color? iconColor,
- TextStyle? labelStyle,
- EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
- double spacing = 6.0,
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality? quality,
- double interactionScale = 1.03,
- double stretch = 0.3,
- double glowRadius = 0.8,
Creates a glass chip.
Implementation
const GlassChip({
required this.label,
super.key,
this.icon,
this.onTap,
this.onDeleted,
this.selected = false,
this.selectedColor,
this.deleteIcon = CupertinoIcons.xmark_circle_fill,
this.deleteIconSize = 16.0,
this.iconSize = 16.0,
this.iconColor,
this.labelStyle,
this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
this.spacing = 6.0,
this.settings,
this.useOwnLayer = false,
this.quality,
// GlassButton properties
this.interactionScale = 1.03,
this.stretch = 0.3,
this.glowRadius = 0.8,
});