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.
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.
87Compare - location
Flutter plugin to get real-time device location across platforms.
94Compare - system_info2
Provides easy access to system information like architecture, kernel, memory, OS, CPU, and user.
85Compare - eventide
Access and modify native device calendars and events on iOS and Android.
79Compare
Works with
Packages commonly used together with flutter_app_info: ones it builds on, ones built on it, and its own family.
- package_info_plusflutter_app_info depends on itFlutter plugin to query app package info like version, build number and installer store.
- device_info_plusflutter_app_info depends on itProvides detailed information about the current device, make, model, and OS version.
- universal_ioflutter_app_info depends on itCross-platform dart:io implementation with browser support for HttpClient and other APIs
- versionflutter_app_info depends on itParses and compares semantic version numbers in compliance with http://semver.org/