WOIIconButton constructor

const WOIIconButton({
  1. Key? key,
  2. double size = 35,
  3. Color backgroundColor = Colors.black,
  4. Border? border,
  5. List<BoxShadow>? boxShadow,
  6. BorderRadius? borderRadius,
  7. bool isDisabled = false,
  8. required Function? onTap,
  9. Widget? child,
  10. WOIButtonStyle? buttonStyle,
})

An Icon button with custom border radius

Atleast one field in icon or child is required

Implementation

const WOIIconButton({
  super.key,
  this.size = 35,
  this.backgroundColor = Colors.black,
  this.border,
  this.boxShadow,
  this.borderRadius,
  this.isDisabled = false,
  required this.onTap,
  this.child,
  this.buttonStyle,
});