AppIconButton constructor

const AppIconButton({
  1. Key? key,
  2. required IconData icon,
  3. required VoidCallback? onPressed,
  4. AppIconButtonVariant variant = AppIconButtonVariant.standard,
  5. String? tooltip,
  6. double? size,
  7. Color? color,
  8. bool enabled = true,
  9. Color? backgroundColor,
  10. double? borderRadius,
  11. Color? borderColor,
  12. double? borderWidth,
  13. EdgeInsetsGeometry? padding,
  14. double? elevation,
  15. Color? shadowColor,
  16. Color? hoverColor,
  17. Color? focusColor,
  18. Color? highlightColor,
})

Creates an icon button.

Implementation

const AppIconButton({
  super.key,
  required this.icon,
  required this.onPressed,
  this.variant = AppIconButtonVariant.standard,
  this.tooltip,
  this.size,
  this.color,
  this.enabled = true,
  this.backgroundColor,
  this.borderRadius,
  this.borderColor,
  this.borderWidth,
  this.padding,
  this.elevation,
  this.shadowColor,
  this.hoverColor,
  this.focusColor,
  this.highlightColor,
});