set opacity of color in fluter code example Example: opacity color flutter Color(0xFF0E3311).withOpacity(0.5)