device_marketing_names
2.0.6, released 13 days ago by boehrsi.de
Lookup device marketing names for Android, iOS and browsers easily.
What it does
Maps device identifiers like 'iPhone13,4' or 'SM-G980F' to their user-friendly marketing names locally. It does not require an active internet connection or a remote database.
AI-written summary of version 2.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display user-friendly device names in analytics or settings
- You want offline capability for mapping raw device hardware strings
Skip it when
- You are targeting desktop platforms (Windows, Linux, macOS) which throw a PlatformException
- You need deep hardware metrics beyond device info and naming
Strengths
- Requires no internet connection or remote database
- Supports Android, iOS, and web browsers with WASM support
- Simple API for current device lookup or model-based lookup
Weaknesses
- Does not support Windows, Linux, or macOS platforms
- Depends on regular package updates to include newly released device models
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add the dependency to pubspec.yaml; relies on device_info_plus under the hood.
final deviceNames = DeviceMarketingNames();
final singleDeviceName = await deviceNames.getSingleName();Alternatives
Packages that do the same job and could replace device_marketing_names.
- platform_detect
Detects browser and OS types and versions in Dart web apps.
71Compare - observe_internet_connectivity
Observe active internet connectivity changes via customizable strategies and stream/widget listeners.
68Compare - platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - internet_connectivity_checker
Manage widgets dynamically based on actual internet access.
47Compare
Works with
Packages commonly used together with device_marketing_names: ones it builds on, ones built on it, and its own family.
- webdevice_marketing_names depends on itLightweight bindings for browser APIs via JS interop
- device_info_plusdevice_marketing_names depends on itProvides detailed information about the current device, make, model, and OS version.
- universal_platformdevice_marketing_names depends on itPlatform detection across Flutter, Dart web, and desktop without errors