flutter/pub-cache/hosted/pub.dartlang.org/icons_helper-1.2.0-nullsafety.1/lib/icons_helper.dart:726:



在显示此错误的flutter中,我不知道为什么会出现此错误,我将所有插件更新为最新版本

/D:/flutter_sdk/flutter/.pub cache/hosts/pub.dartlang.org/icons_helper-1.2.0-nullsafety.1/lib/icons_helper.dart:726:31:错误:找不到成员:"pie_chart_outlined"pie_chart_outlined':图标.pie_chart_outlined,

这是我的pubspec.yaml文件

dev_dependencies:
flutter_test:
sdk: flutter
fluttertoast: ^8.0.8
dio: ^4.0.0
retrofit: ^2.0.1
shared_preferences: ^2.0.8
flutter_spinkit: ^4.1.2
icons_helper: ^1.0.4
flutter_launcher_icons: ^0.9.2
rflutter_alert: ^1.0.3
flutter_easyloading: ^2.0.0
page_transition: ^1.1.6
permission_handler: ^8.2.5
geolocator: ^7.7.0
url_launcher: ^6.0.12
multi_select_flutter: ^4.0.0
flutter_countdown_timer: ^4.1.0
audioplayers: ^0.20.1
flutter_switch: ^0.3.2
file_picker: ^4.1.6
cached_network_image: ^3.1.0
mime: ^1.0.1
call_log: ^3.2.1
firebase_messaging: ^11.1.0
firebase_core: ^1.10.0
overlay_support: ^1.2.1
system_alert_window: ^1.0.0
cloud_firestore: ^1.0.5
flutter_local_notifications: ^5.0.0
flutter_native_splash:
color : "fffff"
image : assets/rsoft_logo.png
android: true;
ios: true;
android12: true;
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/launcher_icon.png"
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/
#   - images/a_dot_ham.jpeg
  1. 转到此路径/D:/flutter_sdk/flutter/.pub cache/hosts/pub.dartlang.org/icons_helper-1.2.0-nulsafety.1/lib/icons_helper.dart并找到此文件icons_helper.dart
  2. 查找图标.pie_chart_outlined3( 将"Icons.pie_chart_outline_outlined"替换为"Icons.pie_chart_outline_ooutlined",然后保存文件。4( 运行flutter pub升级(在android工作室终端(5( 然后颤振运行

我在material.dart中也出现了同样的错误,请按照步骤操作,我希望这能奏效。

转到此路径/D:/flutter/.pub-cache/hosted/pub.dartlang.org/icons_helper-1.2.0-nullsafety.1/lib/icons_helper.dart and find this file icons_helper.dart

并查找并删除线路Icons.pie_chart_outlined或替换为Icons.pie_chart_outline_outlined

相关内容

最新更新