buildLight method

Widget buildLight(
  1. Color color,
  2. bool isOn
)

Implementation

Widget buildLight(Color color, bool isOn) {
  return Container(
    margin: const EdgeInsets.all(8),
    width: 50,
    height: 50,
    decoration: BoxDecoration(
      color: isOn ? color : color.withOpacity(0.2),
      shape: BoxShape.circle,
    ),
  );
}