device_meta
3.0.5, released 2 months ago by nylo.dev
Provides unified access to device model, brand, manufacturer, UUID, OS version and user‑agent with optional persistent metadata.
What it does
The package gathers basic device information across Android, iOS, web, Windows, macOS and Linux. It can store a UUID securely and attach custom key‑value metadata that persists between app launches.
AI-written summary of version 3.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick way to read device details without writing platform‑specific code
- You want to persist a stable UUID securely across app reinstalls
- You need to attach custom metadata to the device record for analytics
Skip it when
- You require fine‑grained sensor data or permissions beyond basic device info
- You prefer a completely permission‑less solution (e.g., only compile‑time constants)
Strengths
- Cross‑platform support including desktop and web
- Secure storage of UUID via flutter_secure_storage
- Simple API with optional custom metadata
Weaknesses
- Adds a dependency on flutter_secure_storage which raises Android minSdk to 24
- Limited to basic device info; no sensor or connectivity data
- No built‑in caching beyond the stored UUID
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Android requires minSdkVersion 24 due to flutter_secure_storage; ensure flutter_secure_storage is initialized and appropriate platform permissions are granted if using Android < API 30
import 'package:device_meta/device_meta.dart';
Future<void> main() async {
DeviceMeta meta = await DeviceMeta.init(storageKey: 'myApp');
print('Model: ${meta.model}, UUID: ${meta.uuid}');
}Alternatives
Packages that do the same job and could replace device_meta.
- system_info2
Provides easy access to system information like architecture, kernel, memory, OS, CPU, and user.
85Compare - package_info_plus
Flutter plugin to query app package info like version, build number and installer store.
93Compare - upgrader
Prompt users to upgrade when a newer version of the app is available in the store.
91Compare - carrier_info
Gets network type, carrier codes, and SIM info on Android and iOS.
86Compare
Works with
Packages commonly used together with device_meta: ones it builds on, ones built on it, and its own family.
- uuiddevice_meta depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- flutter_secure_storagedevice_meta depends on itSecure key-value storage using platform-specific secure mechanisms
- device_info_plusdevice_meta depends on itProvides detailed information about the current device, make, model, and OS version.
- universal_platformdevice_meta depends on itPlatform detection across Flutter, Dart web, and desktop without errors
- woosignalBuilt on device_metaWooCommerce REST API client for Dart to connect and build online stores.