Skip to content
pubscout

device_info_plus

13.3.0, released 7 weeks ago by fluttercommunity.dev

Provides detailed information about the current device, make, model, and OS version.

Flutter Favorite
$ flutter pub add device_info_plus
Source repository

What it does

Fetches hardware and operating system details for the device running the app. It supports getting specific info for Android, iOS, Web, macOS, Linux, and Windows platforms.

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

Use it when

  • You need to log device-specific metadata for crash reporting or analytics.
  • Your app needs to check OS versions or device models to conditionally enable features.

Skip it when

  • You need device state sensors or hardware controls instead of static details.

Strengths

  • Supports all major platforms: Android, iOS, Web, macOS, Windows, and Linux.
  • Provides both strongly-typed platform getters and a generic data method.

Weaknesses

  • The generic device info data map is not 100% JSON compatible or serializable.
  • Certain platform values (like user-assigned device names on iOS 16+) require special entitlements.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
7

Requires meeting specific Java, Kotlin, and Gradle wrapper versions on Android, and minimum OS targets on iOS and macOS.

import 'package:device_info_plus/device_info_plus.dart';

DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
print('Running on ${androidInfo.model}');

Alternatives

Packages that do the same job and could replace device_info_plus.

Works with

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