device_marketing_names
Localize facilmente nomes de marketing de dispositivos para Android, iOS e navegadores. Sem necessidade de conexão com a internet ou banco de dados.
Pacote de pesquisa de nome de dispositivo de marketing para Flutter. Suporta Android, iOS e web.
{"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.5Texto original em inglês. Visite o GitHub para a versão atual.
Pub Version codecov GitHub Workflow Status GitHub likes pub downloads pub points Main
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.