GlassChip constructor

const GlassChip({
  1. required String label,
  2. Key? key,
  3. IconData? icon,
  4. VoidCallback? onTap,
  5. VoidCallback? onDeleted,
  6. bool selected = false,
  7. Color? selectedColor,
  8. IconData deleteIcon = CupertinoIcons.xmark_circle_fill,
  9. double deleteIconSize = 16.0,
  10. double iconSize = 16.0,
  11. Color? iconColor,
  12. TextStyle? labelStyle,
  13. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  14. double spacing = 6.0,
  15. LiquidGlassSettings? settings,
  16. bool useOwnLayer = false,
  17. GlassQuality? quality,
  18. double interactionScale = 1.03,
  19. double stretch = 0.3,
  20. 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,
});