.pub-cache/hosted/pub.flutter-io.cn/flutter_screenutil-5.5.4/lib/src/screen_util.dart:58:5: Error: Type ‘FlutterWindow’ not found.
flutter项目xcode编译报错
解决方法:
把pubspec.yaml 文件中的flutter_screenutil 库升级到最新
flutter_screenutil库的网页:
https://pub.dev/packages/flutter_screenutil
找到最新版本,然后复制到pubspec.yaml 文件中,然后pub get升级
同理:
pub-cache/hosted/pub.flutter-io.cn/city_pickers-1.1.3/lib/src/cities_selector/cities_selector.dart:371:62: Error: The getter ‘accentColor’ isn’t defined for the class ‘ThemeData’.
这个错误解决方法是
city_pickers 库升级到最新
网页:
https://pub.dev/packages/city_pickers/install
找到最新版本,然后复制到pubspec.yaml 文件中,然后pub get升级