我想创建一个深色背景的CupertinoAlertDialog。我尝试使用Themewidget来解决这个问题,但它不起作用。这里有一些代码:showDialog(){showCupertinoDialog(context:context,builder:(context){returnTheme(data:ThemeData(dialogBackgroundColor:Colors.black,dialogTheme:DialogTheme(backgroundColor:Colors.black)),child:CupertinoAlertDialog(title:Text('Ti
我想创建一个深色背景的CupertinoAlertDialog。我尝试使用Themewidget来解决这个问题,但它不起作用。这里有一些代码:showDialog(){showCupertinoDialog(context:context,builder:(context){returnTheme(data:ThemeData(dialogBackgroundColor:Colors.black,dialogTheme:DialogTheme(backgroundColor:Colors.black)),child:CupertinoAlertDialog(title:Text('Ti