device_marketing_names
Android, iOS 및 브라우저의 장치 마케팅 이름을 쉽게 조회할 수 있습니다. 인터넷 연결 또는 데이터베이스가 필요하지 않습니다.
Flutter용 마케팅 장치 이름 검색 패키지입니다. Android, iOS 및 웹을 지원합니다.
{"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.5아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.