package_info_plus
10.2.2, released 7 weeks ago by fluttercommunity.dev
Flutter plugin to query app package info like version, build number and installer store.
What it does
Provides a cross‑platform API to read the application name, package identifier, version, build number and the store that installed the app. Supports Android, iOS, macOS, Linux, Windows and Web.
AI-written summary of version 10.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display or log the app's version/build information.
- You want to redirect users to the correct app store for ratings or updates.
Skip it when
- You require real‑time device sensors or hardware info unrelated to the app package.
Strengths
- Full platform coverage including web and desktop.
- Provides installerStore info for store‑specific flows.
- Zero runtime dependencies beyond Flutter core.
Weaknesses
- Requires native configuration for each platform (e.g., Gradle, Xcode).
- Installer store may be null on some Android devices.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 8
Add the plugin to pubspec.yaml; on Android ensure Gradle and Kotlin versions meet requirements; on iOS configure minimum iOS version and run pod install; no extra permissions needed.
import 'package:package_info_plus/package_info_plus.dart';
Future<void> printInfo() async {
WidgetsFlutterBinding.ensureInitialized();
final info = await PackageInfo.fromPlatform();
print('App: ${info.appName}, Version: ${info.version} (${info.buildNumber})');
}Alternatives
Packages that do the same job and could replace package_info_plus.
- device_info_plus
Offers broader device hardware details but also includes package info; useful if you need both sets of data.
93Compare
Works with
Packages commonly used together with package_info_plus: ones it builds on, ones built on it, and its own family.
- webpackage_info_plus depends on itLightweight bindings for browser APIs via JS interop
- clockpackage_info_plus depends on itA fakeable wrapper for dart:core clock APIs.
- ffipackage_info_plus depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- win32package_info_plus depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- wakelock_plusBuilt on package_info_plusKeep the device screen awake across mobile, desktop, and web platforms.
- sentry_flutterBuilt on package_info_plusSentry SDK for Flutter to capture errors, crashes and performance data across platforms.
- upgraderBuilt on package_info_plusPrompt users to upgrade when a newer version of the app is available in the store.
- amplify_analytics_pinpointBuilt on package_info_plusAWS Pinpoint analytics plugin for Flutter