Flutter 更新到Flatter 2.2.0后文件声明之间存在冲突
将颤振更新为2.2.0版后,一些库(例如pdf_颤振)因文件声明之间的冲突而损坏:Flutter 更新到Flatter 2.2.0后文件声明之间存在冲突,flutter,file,dependencies,Flutter,File,Dependencies,将颤振更新为2.2.0版后,一些库(例如pdf_颤振)因文件声明之间的冲突而损坏: The argument type 'File (where File is defined in /Users/username/bin/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)' can't be assigned to the parameter type 'File (where File is defined in /Users/userna
The argument type 'File
(where File is defined in /Users/username/bin/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart)' can't be assigned to the parameter type 'File (where File is defined in /Users/username/bin/flutter/.pub-cache/hosted/pub.dartlang.org/file-6.1.0/lib/src/interface/file.dart)'.
File is defined in /Users/username/bin/flutter/bin/cache/pkg/sky_engine/lib/io/file.dart (file.dart:71).
File is defined in /Users/username/bin/flutter/.pub-cache/hosted/pub.dartlang.org/file-6.1.0/lib/src/interface/file.dart (file.dart:10).
如何解决