0 purchases
device info noid
device_info #
Deprecation Notice #
This plugin has been replaced by the Flutter Community Plus
Plugins version,
device_info_plus.
No further updates are planned to this plugin, and we encourage all users to
migrate to the Plus version.
Critical fixes (e.g., for any security incidents) will be provided through the
end of 2021, at which point this package will be marked as discontinued.
Get current device information from within the Flutter application.
Usage #
Import package:device_info/device_info.dart, instantiate DeviceInfoPlugin
and use the Android and iOS getters to get platform-specific device
information.
Example:
import 'package:device_info/device_info.dart';
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
print('Running on ${androidInfo.model}'); // e.g. "Moto G (4)"
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
print('Running on ${iosInfo.utsname.machine}'); // e.g. "iPod7,1"
copied to clipboard
You will find links to the API docs on the pub page.
Getting Started #
For help getting started with Flutter, view our online
documentation.
For help on editing plugin code, view the documentation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.