Dialog Background Problem You can see the problem when you click on the "Test" button. Uncommenting this line color: Colors.transparent in the main.dart file leads to an error.