customIcon function
Implementation
Widget customIcon(
BuildContext context, {
required IconData icon,
bool isEnable = false,
double size = 18,
bool isFontAwesomeSolid = false,
Color? iconColor,
double paddingIcon = 0,
}) {
iconColor = iconColor ?? Theme.of(context).textTheme.caption!.color;
return Padding(
padding: EdgeInsets.only(bottom: paddingIcon),
child: Icon(
icon,
size: size,
color: isEnable ? Theme.of(context).primaryColor : iconColor,
),
);
}