SkIconButton constructor
const
SkIconButton({
- Key? key,
- required String label,
- bool isRounded = true,
- Color backgroundColor = Colors.blue,
- Color borderColor = Colors.blue,
- bool isOutlined = false,
- Color? textColor,
- required double h,
- required double w,
- required VoidCallback? onTap,
- double borderRadius = 12,
- required Icon icon,
- bool isPrefixIcon = true,
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- double spacing = 8,
- 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,
});