device_marketing_names
आसानी से एंड्रॉइड, आईओएस और ब्राउज़र के डिवाइस मार्केटिंग नाम खोजें। इंटरनेट कनेक्शन या डेटाबेस की आवश्यकता नहीं है।
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.