Попробуйте использовать
Color.fromRGBO(38, 38, 38, 0.4)
Где r
для Red
, g
для зеленого, b
для Blue
и o
для opacity
Пример:
Container(
width: double.infinity,
height: double.infinity,
color: Color.fromRGBO(38, 38, 38, 0.4),
child: Center(
child: CircularProgressIndicator(),
))