Flutter笔记2

Flutter No named parameter with the name ‘shadowThemeOnly’

提示没有shadowThemeOnly这个参数了,报错的文件是个日期选择插件flutter_cupertino_date_picker

flutter1_22_5.pub-cache\hosted\pub.flutter-io.cn%47\flutter_cupertino_date_picker-1.0.26+2\lib\src\date_picker.dart

新版flutter这个参数被移除,全局搜索shadowThemeOnly,把这个参数给注释掉

Error: Type ‘DiagnosticableMixin’ not found.

flutter1.20.0+以上DiagnosticableMixin 被移除了。

  1. 在flutter1_22_5.pub-cache\hosted\pub.flutter-io.cn%47\flutter_cupertino_date_picker-1.0.26+2\lib\src\date_picker_theme.dart中找到DateTimePickerTheme类
  2. 将继承的DiagnosticableMixin 类替换为 Diagnosticable类
上一篇:27HUI - picker(huiPicker)


下一篇:el-date-picker日期组件禁用日期