device_info_plus 0.7.2
device_info_plus: ^0.7.2 copied to clipboard
Flutter plugin providing detailed information about the device (make, model, etc.), and Android or iOS version the app is running on.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
device_info_plus: ^0.7.2
2. Install it
You can install packages from the command line:
with Flutter:
$ flutter pub get
Alternatively, your editor might support flutter pub get
.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:device_info_plus/device_info_plus.dart';