Skip to content
pubscout

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.

$ flutter pub add device_meta
Source repository

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.

  • package_info_plus

    Flutter plugin to query app package info like version, build number and installer store.

  • upgrader

    Prompt users to upgrade when a newer version of the app is available in the store.

  • carrier_info

    Gets network type, carrier codes, and SIM info on Android and iOS.

Works with

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