在flutter引入CupertinoAlertDialog总是报:The getter 'alertDialogLabel' was called on null

flutter使用CupertinoAlertDialog,点击弹出按键时报: The getter 'alertDialogLabel' was called on null 跳入到上一层dialog.dart中的确有个label: localizations.alertDialogLabel,但是CupertinoAlertDialog没有该属性… 翻阅谷歌发现相同问题,简单尝试下,的确有效:
相关文章
相关标签/搜索