PackageInfoPlus 是一个 Flutter 插件,可让应用程序在多个平台上获取关键的包信息,例如版本名称、版本代码、构建编号和捆绑标识符。它在 Android、iOS、Web、macOS、Windows 和 Linux 上提供对应用元数据的一致访问,非常适合用于调试、分析和版本跟踪。该插件由 Flutter Community 维护,并支持现代 Flutter 开发工作流程。
适合场景
获取应用版本以检查更新
在设置中显示版本信息
用于调试的构建追踪应用程序
与分析服务集成
支持多平台应用元数据访问
主要特点
跨平台兼容性
版本和构建信息的简单 API
支持 iOS、Android、Web、macOS、Windows 和 Linux
由 Flutter Community 维护
通过 pub.dev 实现轻松集成
适合对象
开发跨平台 Flutter 应用的开发者
需要版本跟踪的应用程序
调试和日志功能
分析和崩溃报告集成
使用 Flutter Community 插件的团队
使用建议
某些功能需要平台特定的配置
仅限基本包元数据
无运行时版本信息更新
取决于正确的清单/配置设置
不适合复杂的应用元数据需求
原始 README
以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。
Plus plugins
PlusPlugins is a set of Flutter plugins that is developed based on plugins, which previously existed
as a part of Flutter plugins, with extra functionalities,
support for more platforms and better maintenance.
Please file PlusPlugins specific issues, bugs, or feature requests in our issue tracker.
Plugin issues that are not specific to PlusPlugins can be filed in the Flutter issue tracker.
Contributing
If you wish to contribute a change to any of the existing plugins in this repo,
please review our contribution guide
and open a pull request.
Status
This repository is maintained by FlutterCommunity authors. Issues here are answered by maintainers and other community members on GitHub on a best-effort basis.