Why the screen becomes dark when an alert was displaying with flutter?

Advertisements I don’t know why the screen becomes dark when I try to use the alert on initState() in my flutter application. This is the code : if (element.isCharacteristic42) { Scaffold: (showDialog( context: context, builder: (context) { return AlertDialog( title: Text(‘Be Careful an obstacle was detected’), backgroundColor: Color.fromARGB(45, 231, 148, 54), alignment: Alignment.topCenter, ); }));… Read More Why the screen becomes dark when an alert was displaying with flutter?