[英]Unused dependencies Shows in Flutter
I'm developing flutter application and I using below dependencies for my project.我正在开发 flutter 应用程序,并为我的项目使用以下依赖项。
webview_flutter: ^3.0.0 webview_flutter: ^3.0.0
connectivity_plus: ^2.2.0 connectivity_plus:^2.2.0
html: ^0.15.0 html:^0.15.0
sn_progress_dialog: ^1.0.3 sn_progress_dialog: ^1.0.3
http: ^0.13.4 http:^0.13.4
pin_code_fields: ^7.3.0 pin_code_fields:^7.3.0
flutter_barcode_scanner: ^2.0.0 flutter_barcode_scanner: ^2.0.0
url_launcher: ^6.0.20 url_launcher: ^6.0.20
datetime_picker_formfield: ^2.0.0 datetime_picker_formfield: ^2.0.0
extended_masked_text: ^2.3.1扩展_屏蔽_文本:^2.3.1
image_picker: ^0.8.4+8图片选择器:^0.8.4+8
timelines: ^0.1.0时间表:^0.1.0
carousel_slider: ^4.0.0 carousel_slider: ^4.0.0
page_transition: ^2.0.5 page_transition: ^2.0.5
provider: ^6.0.2提供商:^6.0.2
native_updater: ^0.1.1 native_updater: ^0.1.1
flutter_svg: ^1.0.3 flutter_svg: ^1.0.3
dropdown_search: ^2.0.1下拉搜索:^2.0.1
flutter_rating_bar: ^4.0.0 flutter_rating_bar: ^4.0.0
expandable: ^5.0.1可扩展:^5.0.1
crypto: ^3.0.1密码:^3.0.1
device_info_plus: ^3.2.1 device_info_plus: ^3.2.1
dart_ipify: ^1.1.1 dart_ipify: ^1.1.1
qr_code_scanner: ^0.6.1 qr_code_scanner: ^0.6.1
flutter_jailbreak_detection: ^1.8.0 flutter_jailbreak_detection: ^1.8.0
flutter_secure_storage: ^5.0.2 flutter_secure_storage: ^5.0.2
firebase_messaging: ^11.2.6 firebase_messaging:^11.2.6
firebase_core: ^1.12.0 firebase_core: ^1.12.0
cloud_firestore: ^3.1.8 cloud_firestore:^3.1.8
flutter_google_places: ^0.3.0 flutter_google_places:^0.3.0
google_directions_api: ^0.9.0 google_directions_api:^0.9.0
geolocator: ^8.2.0地理定位器:^8.2.0
geocoding: ^2.0.2地理编码:^2.0.2
google_maps_flutter: ^2.1.1 google_maps_flutter:^2.1.1
location: ^4.3.0位置:^4.3.0
flutter_polyline_points: ^1.0.0 flutter_polyline_points: ^1.0.0
permission_handler: ^9.2.0权限处理程序:^9.2.0
But in my android folder shows unused dependencies.但是在我的 android 文件夹中显示未使用的依赖项。 Anyone can explain this and how to remove this from project?
任何人都可以解释这个以及如何从项目中删除它?
Ex:package_info_plus
例如:package_info_plus
I am not sure if I am giving the correct answer but, this may be because each flutter package/plugin may depend on others.我不确定我是否给出了正确的答案,但这可能是因为每个 flutter 包/插件可能依赖于其他包/插件。 If you see the device_info_plus on pub.dev you will see its dependencies.
如果您在pub.dev上看到device_info_plus ,您将看到它的依赖项。 See the below image.
请参见下图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.