device_info 1.0.0
device_info: ^1.0.0
device_info: ^2.0.0-nullsafety.1

Flutter Android iOS

Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.

device_info #

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"

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.

629
likes
95
pub points
99%
popularity

Publisher

flutter.dev

Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

device_info_platform_interface, flutter

More

Packages that depend on device_info