device_info 0.0.2 copy "device_info: ^0.0.2" to clipboard
device_info: ^0.0.2 copied to clipboard

discontinued
outdatedDart 1 only

Provides detailed information about the device the Flutter 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 = new 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.model}');  // e.g. "iPhone 6"

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.

1262
likes
0
pub points
99%
popularity

Publisher

verified publisherflutter.dev

Provides detailed information about the device the Flutter app is running on.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on device_info