Skip to content
pubscout

flutter_app_info

3.0.3, released 2 years ago by tazatechnology.com

Access device, platform, target, and app version information via an inherited widget.

$ flutter pub add flutter_app_info
Source repository

What it does

Bundles device_info_plus, package_info_plus, and version into a single AppInfo inherited widget. Automatically fetches async information at app launch and makes it available to every widget in the tree while safely handling web platform restrictions.

AI-written summary of version 3.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need global access to app version, package info, and device/platform specifications.
  • You want to avoid repeatedly writing async utility code for device and package details across projects.

Skip it when

  • You only need to check a single isolated device property without an inherited widget setup.
  • You prefer calling native plugins directly rather than through a wrapper package.

Strengths

  • Provides a unified AppInfoData structure available anywhere in the widget tree.
  • Automatically handles platform safety and restrictions on the web.
  • Exposes structured SemVer version objects for easy comparison.

Weaknesses

  • Requires wrapping the root of your application with an async setup in main().
  • Brings in multiple dependencies (device_info_plus, package_info_plus, version).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Update the main() function to wrap the root application with AppInfo using await AppInfoData.get().

void main() async {
  runApp(
    AppInfo(
      data: await AppInfoData.get(),
      child: const MyApp(),
    ),
  );
}

Alternatives

Packages that do the same job and could replace flutter_app_info.

  • jni_flutter

    Access Flutter Android APIs from Dart.

  • location

    Flutter plugin to get real-time device location across platforms.

  • system_info2

    Provides easy access to system information like architecture, kernel, memory, OS, CPU, and user.

  • eventide

    Access and modify native device calendars and events on iOS and Android.

Works with

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