我正在使用dialogBackgroundColor属性仍然颜色没有改变。谁能告诉我如何更改对话框的背景颜色?
dialogBackgroundColor
您现在可以使用backgroundColor的财产AlertDialog改变颜色。
backgroundColor
AlertDialog
AlertDialog( backgroundColor: Colors.orange, ... )