how to set opacity of background color in flutter code example
Example 1: flutter how to add opacity to color
backgroundColor: Colors.black.withOpacity(0.5)
Example 2: how to set opacity of background color in flutter
Opacity(
opacity: 0.5,
child: Container(
color: Colors.red,
width: 200,
height: 200,
),
),