rror: Type 'DiagnosticableMixin' not found.
class DateTimePickerTheme with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
/D:/flutter_sdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DateTimePickerTheme with DiagnosticableMixin {
^
/D:/flutter_sdk/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker.dart:103:34: Error: No named parameter with the name 'shadowThemeOnly'.
theme: Theme.of(context, shadowThemeOnly: true),
^^^^^^^^^^^^^^^
解决方法:
1.在lib/src/date_picker_theme.dart中找到DateTimePickerTheme类
2.将继承的DiagnosticableMixin 类替换为 Diagnosticable类
3.在 flutter_cupertino_date_picker-1.0.26+2\lib\src 文件内找到 shadowThemeOnly ,注释掉
4. theme: Theme.of(context, /* shadowThemeOnly: true*/),