IconRemove function

Widget IconRemove(
  1. dynamic b, {
  2. dynamic size,
  3. dynamic radius,
})

Implementation

Widget IconRemove(b, {size, radius}) {
  Color color = !b ? HexToColor('#3399FF') : HexToColor('#CCCCCC');
  Color colorBg =
      !b ? Color.fromRGBO(51, 153, 255, 0.06) : HexToColor('#F6F6F6');

  return Center(
    child: Icon(
      Icons.remove,
      size: 16,
      color: color,
    ),
  ).background(
      width: size ?? 32.w,
      height: size ?? 32.w,
      color: colorBg,
      radius: radius ?? 1.w);
}