device_marketing_names
Lookup device marketing names for Android, iOS and browsers with ease. No internet connection or database required.
Marketing device name lookup package for Flutter. Supports Android, iOS and web.
English project snapshot. Visit GitHub for the latest content.
A simple device name lookup package. Map e.g. 'iPhone13,4' to 'iPhone 12 Pro Max' or 'SM-G980F' to 'Galaxy S20'. No internet connection or database required.
Add this to your package's pubspec.yaml file:
dependencies:
device_marketing_names: ^2.0.3
More information on pub.dev.
For full examples please see the example app.
final deviceNames = DeviceMarketingNames();
// Get one marketing name of the device.
final singleDeviceName = await deviceNames.getSingleName();
// Get all marketing names of the device.
final allDeviceNames = await deviceNames.getNames();
// Get one marketing name for the given model.
final singleDeviceNameFromModel = deviceNames.getSingleNameFromModel(DeviceType.android, "ONEPLUS A5010");
// Get all marketing names for the given model.
final allDeviceNamesFromModel = deviceNames.getNamesFromModel(DeviceType.android, "ONEPLUS A5010");
getMarketingName() with getSingleName() if you want to get exactly one matching name.getMarketingName() with getNames() if you want all matching names as a single string. Names are separated by " / ".getMarketingNameFromModel() with getSingleNameFromModel() if you want to get exactly one matching name.getMarketingNameFromModel() with getNamesFromModel() if you want all matching names as a single string. Names are separated by " / ".If you are interested in contributing, please have a look into the contribution guide. Every idea, bug report or line of code is heavily appreciated.
Dependency list 9 items
{"sdk":"flutter"}>=4.1.2 <14.0.0^1.1.0^1.1.1{"sdk":"flutter"}^2.4.15>=3.0.0 <9.0.0>=3.0.2 <7.0.0^5.4.5Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗