三方库使用情况整理
基于 pubspec.yaml 文件分析,以下是当前项目中使用的第三方库详细信息:
依赖库详情表格
| 库名 | 当前版本 | 最新版本 | 支持平台 | 功能描述 | 最新版本Dart要求 | 推荐替换组件 |
|---|
| great_list_view | ^0.2.3 | ^0.2.3 | Flutter | 动效列表 | Dart 2.12+ | - |
| event_bus | ^2.0.0 | ^2.0.1 | Flutter | 事件总线 | Dart 2.12+ | flutter_event_bus |
| get | ^4.6.1 | ^4.6.6 | Flutter | 状态管理和依赖注入 | Dart 2.17+ | Provider + Riverpod |
| web_socket_channel | ^2.1.0 | ^2.4.4 | Flutter | WebSocket通信 | Dart 2.17+ | - |
| shared_preferences | ^2.0.17 | ^2.2.2 | iOS/Android/Windows/macOS/Linux/Flutter Web | 本地存储 | Dart 2.17+ | Hive、Isar |
| path_provider | ^2.0.12 | ^2.1.1 | iOS/Android/Windows/macOS/Linux | 文件路径获取 | Dart 2.17+ | - |
| path | ^1.8.2 | ^1.8.3 | Dart | 路径操作 | Dart 2.12+ | - |
| hexcolor | ^3.0.1 | ^3.0.1 | Flutter | 颜色处理 | Dart 2.12+ | flutter_color_tools |
| flutter_screenutil | ^5.6.0 | ^5.9.0 | Flutter | 屏幕适配 | Dart 2.17+ | - |
| permission_handler | ^10.2.0 | ^11.0.1 | iOS/Android/Windows/macOS | 权限处理 | Dart 2.17+ | - |
| platform_device_id | ^1.0.1 | ^1.0.1 | iOS/Android | 设备信息获取 | Dart 2.12+ | device_info_plus |
| flutter_html | ^3.0.0-beta.2 | ^3.0.0-beta.2 | Flutter | HTML标签解析 | Dart 2.12+ | flutter_widget_from_html |
| webview_flutter | ^3.0.4 | ^4.4.2 | iOS/Android/Windows/macOS | Webview组件 | Dart 2.17+ | - |
| webview_windows | ^0.4.0 | ^0.4.0 | Windows | Windows平台Webview | Dart 2.17+ | - |
| intl | ^0.17.0 | ^0.18.1 | Flutter | 国际化 | Dart 2.12+ | - |
| dio | ^5.0.3 | ^5.4.0 | Flutter | HTTP请求 | Dart 2.17+ | - |
| pretty_dio_logger | ^1.3.1 | ^1.3.1 | Flutter | Dio日志 | Dart 2.12+ | dio_log |
| cookie_jar | ^3.0.0 | ^3.0.2 | Flutter | Cookie管理 | Dart 2.12+ | - |
| dio_cookie_manager | ^2.0.0 | ^3.1.1 | Flutter | Dio Cookie管理 | Dart 2.12+ | - |
| percent_indicator | ^4.2.2 | ^4.2.3 | Flutter | 圆形进度条 | Dart 2.12+ | linear_percent_indicator |
| flutter_slidable | ^0.6.0 | ^3.0.1 | Flutter | 列表左滑操作 | Dart 2.17+ | - |
| audioplayers | ^3.0.0 | ^5.2.1 | iOS/Android/Windows/macOS/Flutter Web | 音频播放 | Dart 2.17+ | just_audio |
| audioplayers_windows | ^1.1.3 | ^2.0.0 | Windows | Windows音频播放 | Dart 2.17+ | - |
| media_kit | any | ^1.1.10 | iOS/Android/Windows/macOS/Flutter Web | 媒体播放 | Dart 2.17+ | - |
| media_kit_libs_windows_video | any | ^1.0.4 | Windows | Windows视频播放 | Dart 2.17+ | - |
| video_player_media_kit | any | ^1.0.6 | iOS/Android/Windows/macOS/Flutter Web | 视频播放 | Dart 2.17+ | - |
| http | ^0.13.5 | ^1.1.0 | Dart | HTTP请求 | Dart 2.17+ | - |
| provider | ^6.0.5 | ^6.1.1 | Flutter | 状态管理 | Dart 2.17+ | - |
| synchronized | ^3.0.1 | ^3.1.0 | Dart | 同步锁 | Dart 2.12+ | - |
| android_intent | ^2.0.2 | ^3.1.0 | Android | Android Intent | Dart 2.17+ | - |
| build_runner | ^2.3.3 | ^2.4.7 | Dart | 代码生成 | Dart 2.17+ | - |
| open_filex | ^4.3.2 | ^4.3.2 | iOS/Android/Windows/macOS/Linux/Flutter Web | 文件打开 | Dart 2.17+ | - |
| bot_toast | ^4.0.3 | ^4.1.3 | Flutter | Toast弹窗 | Dart 2.12+ | fluttertoast |
| connectivity_plus | 5.0.2 | 5.0.2 | iOS/Android/Windows/macOS/Flutter Web | 网络连接 | Dart 2.17+ | - |
| qr_flutter | ^4.0.0 | ^4.0.0 | Flutter | 二维码生成 | Dart 2.12+ | - |
| filesystem_picker | ^3.1.0 | ^4.1.0 | Flutter | 文件系统选择器 | Dart 2.12+ | file_picker |
| qr_code_scanner | ^1.0.1 | ^1.0.1 | iOS/Android | 二维码扫描 | Dart 2.12+ | mobile_scanner |
| sleek_circular_slider | ^2.0.1 | ^2.0.1 | Flutter | 圆形渐变进度条 | Dart 2.12+ | circular_slider |
| flutter_calendar_carousel | ^2.4.1 | ^3.0.0 | Flutter | 日历组件 | Dart 2.12+ | table_calendar |
| syncfusion_flutter_charts | ^20.4.51 | ^24.1.41 | Flutter | 图表组件 | Dart 2.17+ | fl_chart、charts_flutter |
| kg_charts | ^0.0.5 | ^0.0.5 | Flutter | 雷达图 | Dart 2.12+ | fl_chart |
| video_player | ^2.7.2 | ^2.8.1 | iOS/Android/Windows/macOS/Linux/Flutter Web | 视频播放 | Dart 2.17+ | - |
| shake_animation_widget | ^3.0.4 | ^3.0.4 | Flutter | 文字抖动动画 | Dart 2.12+ | - |
| spine_flutter_dart | git | - | Flutter | Spine动画渲染 | - | flare_flutter |
| svgaplayer_flutter | ^2.2.0 | ^2.8.0 | iOS/Android | SVGA文件渲染 | Dart 2.12+ | - |
| pull_to_refresh | ^2.0.0 | ^2.0.0 | Flutter | 下拉刷新上拉加载 | Dart 2.12+ | custom_refresh_indicator |
| flutter_widget_from_html_core | ^0.10.0 | ^0.15.2 | Flutter | HTML渲染 | Dart 2.17+ | - |
| flutter_swiper_view | ^1.1.8 | ^1.1.8 | Flutter | 轮播图 | Dart 2.12+ | carousel_slider |
| flutter_math_fork | ^0.6.3+1 | ^0.7.1+1 | Flutter | 数学公式渲染 | Dart 2.12+ | flutter_tex |
| window_manager | ^0.3.7 | ^0.3.7 | Windows/macOS/Linux | 窗口管理 | Dart 2.12+ | - |
| package_info_plus | ^3.0.3 | ^4.2.0 | iOS/Android/Windows/macOS/Linux/Flutter Web | 包信息获取 | Dart 2.17+ | - |
| download | ^1.0.0 | ^1.0.0 | Flutter | 下载功能 | Dart 2.12+ | - |
| dart_vlc | ^0.4.0 | ^6.0.4 | Windows/macOS/Linux | VLC播放器 | Dart 2.17+ | - |
| msix | ^3.7.0 | ^3.16.3 | Windows | MSIX打包 | Dart 2.17+ | - |
| step_progress_indicator | ^1.0.2 | ^1.0.2 | Flutter | 步骤进度指示器 | Dart 2.12+ | smooth_page_indicator |
| flutter_custom_dialog | ^1.0.20 | ^1.1.3 | Flutter | 自定义对话框 | Dart 2.12+ | modal_bottom_sheet |
| crypto | ^3.0.1 | ^3.0.3 | Dart | 加密算法 | Dart 2.12+ | encrypt |
| flutter_oss_aliyun | ^6.4.1 | ^6.4.1 | Flutter | 阿里云OSS | Dart 2.12+ | - |
| flutter_staggered_grid_view | ^0.7.0 | ^0.7.0 | Flutter | 瀑布流网格 | Dart 2.12+ | staggered_grid_view |
| desktop_multi_window | ^0.2.1 | ^0.2.1 | Windows/macOS | 多窗口 | Dart 2.12+ | - |
| desktop_lifecycle | ^0.1.1 | ^0.1.1 | Windows/macOS | 桌面生命周期 | Dart 2.12+ | - |
| flutter_markdown | any | ^0.6.18+2 | Flutter | Markdown渲染 | Dart 2.17+ | - |
| device_info | ^2.0.3 | ^2.0.3 | iOS/Android/Windows/macOS | 设备信息 | Dart 2.12+ | device_info_plus |
| fijkplayer | ^0.11.0 | ^0.11.0 | iOS/Android | 视频播放器 | Dart 2.12+ | video_player |
| cached_network_image | ^3.2.0 | ^3.3.0 | Flutter | 网络图片缓存 | Dart 2.17+ | - |
| fl_chart | 0.62.0 | 0.66.2 | Flutter | 图表绘制 | Dart 2.17+ | - |
| decimal | ^2.3.0 | ^2.3.3 | Dart | 精确小数计算 | Dart 2.12+ | money2 |
| screenshot | ^1.3.0 | ^3.0.0 | iOS/Android/Windows/macOS/Linux | 截图功能 | Dart 2.17+ | - |
| file_picker | ^5.3.1 | ^5.5.0 | iOS/Android/Windows/macOS/Linux/Flutter Web | 文件选择器 | Dart 2.17+ | - |
| system_info2 | ^4.1.0 | ^6.0.1 | Windows/macOS/Linux | 系统信息 | Dart 2.17+ | - |
| win32 | ^4.1.4 | ^5.1.0 | Windows | Windows API | Dart 2.17+ | - |
| ffi | ^2.0.0 | ^2.1.0 | Dart | 外部函数接口 | Dart 2.17+ | - |
| dio_log | 2.0.5 | 2.0.5 | Flutter | Dio日志 | Dart 2.17+ | - |
开发依赖库详情表格
| 库名 | 当前版本 | 最新版本 | 支持平台 | 功能描述 | 最新版本Dart要求 | 推荐替换组件 |
|---|
| flutter_test | sdk: flutter | sdk: flutter | Flutter | 测试框架 | - | - |
| flutter_lints | ^2.0.1 | ^3.0.2 | Flutter | 代码规范检查 | Dart 2.17+ | - |
| dart_code_metrics | ^5.7.6 | ^5.7.8 | Dart | 代码质量分析 | Dart 2.17+ | very_good_analysis |
说明
- 当前版本:项目中实际使用的版本
- 最新版本:pub.dev上该库的最新版本(可能需要更新)
- 支持平台:库支持的平台(如iOS、Android、Windows、macOS、Linux、Flutter Web等)
- 功能描述:库的主要功能简介
- 最新版本Dart要求:最新版本所需的Dart SDK版本
- 推荐替换组件:如果当前库已过时或有更好的选择
重点关注
- 部分库有较新版本可用,如 [audioplayers](当前3.0.0,最新5.2.1)、[syncfusion_flutter_charts](当前20.4.51,最新24.1.41)等
- [device_info] 可以考虑替换为 [device_info_plus],功能更全面
- [qr_code_scanner] 可以考虑替换为 [mobile_scanner],性能更好
- [flutter_calendar_carousel] 可以考虑替换为 [table_calendar],功能更强大