device_details_plugin

A new Flutter plugin to get platform specific device information.

Getting Started

A library for getting platform information.

This lightweight package allows in a very simple and optimized way to obtain Info about the platform on which it is running. It's multi-platform, and supports mobile, desktop, and the browser.

Using The easiest way to use this library is to call the class as follows. Multiple instances are not being created since thanks to a factory constructor it always returns an internal singleton:

DeviceDetailsFlutter _deviceDetails = DeviceDetailsFlutter();

 Column(
    mainAxisSize: MainAxisSize.min,
    crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Text("app name: ${_deviceDetails.appName}"),
        Text("package name: ${_deviceDetails.packageName}"),
        Text("version name: ${_deviceDetails.version}"),
        Text("build: ${_deviceDetails.buildNumber}"),
        Text("flutter app version: ${_deviceDetails.flutterAppVersion}"),
        Text("os version: ${_deviceDetails.osVersion}"),
        Text("total internal storage: ${_deviceDetails.totalInternalStorage}"),
        Text("free internal storage: ${_deviceDetails.freeInternalStorage}"),
        Text("mobile operator: ${_deviceDetails.networkOperator}"),
        Text("total ram size: ${_deviceDetails.totalRAMSize}"),
        Text("free ram size: ${_deviceDetails.freeRAMSize}"),
        Text("screen size: ${_deviceDetails.screenSizeInInches}"),
        Text("current date and time: ${_deviceDetails.currentDateTime}"),
        Text("manufacturer: ${_deviceDetails.manufacturer}"),
        Text("device id: ${_deviceDetails.deviceId}"),
    ],
),