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