Skip to content
pubscout

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.

Flutter Favorite
$ flutter pub add package_info_plus
Source repository

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.

Works with

Packages commonly used together with package_info_plus: ones it builds on, ones built on it, and its own family.