Flutter升級錯誤
升級一個老項目,用的是flutter,升級完了一直報錯:
/C:/Users/***/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/file-6.1.2/lib/src/interface/file.dart:15:16: Error: The method 'File.create' has
fewer named arguments than those of overridden method 'File.create'.
Future<File> create({bool recursive = false});
原因:File版本太低,在pubspec.yaml指定 file: ^6.1.4 即可

浙公網安備 33010602011771號