IconButtonWidget constructor
IconButtonWidget({})
Implementation
IconButtonWidget({
super.key,
required String text,
required IconData icon,
VoidCallback? onTap,
Color? backgroundColor,
Color? textColor,
double? width,
double? height,
double? borderRadius,
bool showBorder = false,
}) : super(
text: text,
onTap: onTap,
backgroundColor: backgroundColor,
textColor: textColor,
width: width,
height: height,
borderRadius: borderRadius,
showBorder: showBorder,
leading: Icon(icon, color: textColor ?? ColorResource.whiteColor, size: 18),
);