GrxIconButton constructor

GrxIconButton({
  1. Key? key,
  2. required IconData icon,
  3. void onPressed()?,
  4. Color backgroundColor = Colors.transparent,
  5. double size = 24.0,
  6. bool isLoading = false,
  7. bool enabled = true,
  8. EdgeInsetsGeometry? margin,
  9. Color? foregroundColor,
})

Implementation

GrxIconButton({
  super.key,
  required final IconData icon,
  super.onPressed,
  super.backgroundColor = Colors.transparent,
  super.size = 24.0,
  super.isLoading,
  super.enabled,
  super.margin,
  final Color? foregroundColor,
}) : super(
       child: Icon(icon, size: size - GrxSpacing.xxs),
       foregroundColor: foregroundColor ?? GrxColors.primary.shade900,
     );