SkIconButton constructor

const SkIconButton({
  1. Key? key,
  2. required String label,
  3. bool isRounded = true,
  4. Color backgroundColor = Colors.blue,
  5. Color borderColor = Colors.blue,
  6. bool isOutlined = false,
  7. Color? textColor,
  8. required double h,
  9. required double w,
  10. required VoidCallback? onTap,
  11. double borderRadius = 12,
  12. required Icon icon,
  13. bool isPrefixIcon = true,
  14. TextStyle? textStyle,
  15. EdgeInsetsGeometry? padding,
  16. double spacing = 8,
  17. double borderWidth = 1.5,
})

Implementation

const SkIconButton({
  super.key,
  required this.label,
  this.isRounded = true,
  this.backgroundColor = Colors.blue,
  this.borderColor = Colors.blue,
  this.isOutlined = false,
  this.textColor,
  required this.h,
  required this.w,
  required this.onTap,
  this.borderRadius = 12,
  required this.icon,
  this.isPrefixIcon = true,
  this.textStyle,
  this.padding,
  this.spacing = 8,
  this.borderWidth = 1.5,
});