EasyIconButton constructor

const EasyIconButton({
  1. Key? key,
  2. IconData? icon,
  3. double? iconSize,
  4. Color? iconColor,
  5. VoidCallback? onPressed,
  6. HapticImpact hapticImpact = HapticImpact.none,
  7. Widget? iconWidget,
  8. bool enabled = true,
  9. double size = 48,
  10. Color? color,
  11. Color? disabledColor,
  12. double? borderRadius,
  13. bool isRounded = false,
  14. EdgeInsetsGeometry? margin,
  15. EdgeInsetsGeometry padding = const EdgeInsets.all(8),
  16. double? elevation,
})

EasyIconButton is a ElevatedButton with simple parameters which makes it easy to style this button.

EasyIconButton(
 icon: Icons.add,
),

Implementation

const EasyIconButton({
  Key? key,
  this.icon,
  this.iconSize,
  this.iconColor,
  this.onPressed,
  this.hapticImpact = HapticImpact.none,
  this.iconWidget,
  this.enabled = true,
  this.size = 48,
  this.color,
  this.disabledColor,
  this.borderRadius,
  this.isRounded = false,
  this.margin,
  this.padding = const EdgeInsets.all(8),
  this.elevation,
}) : super(key: key);