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.
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.
- package_info_plus
Flutter plugin to query app package info like version, build number and installer store.
93Compare - battery_plus
Access device battery level, state, and battery save mode across platforms.
93Compare - network_info_plus
Flutter plugin for discovering network and WiFi details.
92Compare - screen_retriever
Read desktop screen size, work area, scale factor and cursor position on Windows, macOS and Linux.
93Compare
Works with
Packages commonly used together with device_info_plus: ones it builds on, ones built on it, and its own family.
- webdevice_info_plus depends on itLightweight bindings for browser APIs via JS interop
- ffidevice_info_plus depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- filedevice_info_plus depends on itPluggable, mockable file system abstraction for Dart with in-memory support.
- win32device_info_plus depends on itCall common Windows APIs and COM objects directly from Dart using FFI.
- win32_registrydevice_info_plus depends on itType‑safe Dart API for accessing and managing the Windows Registry
- livekit_clientBuilt on device_info_plusFlutter Client SDK for LiveKit to build real-time video, audio, and data features.
- syncfusion_flutter_pdfviewerBuilt on device_info_plusFlutter PDF Viewer library to display PDF documents seamlessly and efficiently.
- healthBuilt on device_info_plusWrapper for Apple's HealthKit and Google's Health Connect.