AppIconButton constructor

const AppIconButton({
  1. Key? key,
  2. required ButtonType type,
  3. VoidCallback? onPressed,
  4. GestureConfig? gestureConfig,
  5. IconButtonShape shape = IconButtonShape.circle,
  6. IconButtonSize size = IconButtonSize.md,
  7. Color? customColor,
  8. Color? customIconColor,
  9. Color? customBgColor,
  10. double? customIconSize,
  11. bool showBadge = false,
  12. String? badgeLabel,
  13. String? tooltip,
  14. bool isDisabled = false,
  15. bool isLoading = false,
  16. bool hasBorder = false,
})

Implementation

const AppIconButton({
  super.key,
  required this.type,
  this.onPressed,
  this.gestureConfig,
  this.shape = IconButtonShape.circle,
  this.size = IconButtonSize.md,
  this.customColor,
  this.customIconColor,
  this.customBgColor,
  this.customIconSize,
  this.showBadge = false,
  this.badgeLabel,
  this.tooltip,
  this.isDisabled = false,
  this.isLoading = false,
  this.hasBorder = false,
});