CustomIconButton function

Widget CustomIconButton(
  1. dynamic onTap,
  2. String icon,
  3. String size
)

Implementation

Widget CustomIconButton(onTap, String icon, String size) {
    return InkWell(
        onTap: () {
            HapticFeedback.heavyImpact();
            onTap();
        },
        child: Container(padding: EdgeInsets.only(left: 16), child: CustomIcon(icon: icon, size: size)),
    );
}