GlassIconButton constructor

const GlassIconButton({
  1. required IconData icon,
  2. required VoidCallback? onPressed,
  3. Key? key,
  4. double size = 44,
  5. double? iconSize,
  6. GlassIconButtonShape shape = GlassIconButtonShape.circle,
  7. double borderRadius = 12,
  8. Color? glowColor,
  9. double glowRadius = 20,
  10. double interactionScale = 0.95,
  11. bool useOwnLayer = false,
  12. LiquidGlassSettings? settings,
  13. GlassQuality quality = GlassQuality.standard,
})

Creates a glass icon button.

Implementation

const GlassIconButton({
  required this.icon,
  required this.onPressed,
  super.key,
  this.size = 44,
  this.iconSize,
  this.shape = GlassIconButtonShape.circle,
  this.borderRadius = 12,
  this.glowColor,
  this.glowRadius = 20,
  this.interactionScale = 0.95,
  this.useOwnLayer = false,
  this.settings,
  this.quality = GlassQuality.standard,
});