ui_device

Creator: coderz1093

Last updated:

0 purchases

ui_device Image
ui_device Images
Add to Cart

Description:

ui device

ui_device #
A Flutter plugin for accessing UIDevice information on iOS.
Usage #
To use this plugin, add ui_device as a dependency in your pubspec.yaml file.
dependencies:
ui_device:
git:
url: https://github.com/MixinNetwork/flutter-plugins.git
path: packages/ui_device
copied to clipboard
Then import the package:
import 'package:ui_device/ui_device.dart' as ui_device;
copied to clipboard
Getting Device Information #
ui_device provides a single method current which returns a DeviceInfo object containing various properties of the device.
final current = ui_device.current;
print(current.systemName); // e.g. "iOS"
print(current.systemVersion); // e.g. "14.4.1"
print(current.name); // e.g. "iPhone XS Max"
print(current.model); // e.g. "iPhone11,6"
copied to clipboard
You can also get additional information such as the localizedModel, identifierForVendor, and isPhysicalDevice.
final current = ui_device.current;
print(current.localizedModel); // e.g. "iPhone"
print(current.identifierForVendor); // a unique identifier for a device, persisted across app installs
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.