buildLight method
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,
),
);
}