50%white shade in transparent background flutter code example Example: flutter how to add opacity to color backgroundColor: Colors.black.withOpacity(0.5)