yash1200 / flutter_device_info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_device_info

Get current device information from within the Flutter application.

Currently Supported devices are - Linux.

Usage

Import package:flutter_device_info/flutter_device_info.dart, instantiate FlutterDeviceInfo and use the Linux getters to get platform-specific device information.

Example :

LinuxDeviceInfo linuxDeviceInfo = await FlutterDeviceInfo().linuxInfo;
print("OS is ${linuxDeviceInfo.os}");  // Example : Arch Linux
print("Total Ram is ${linuxDeviceInfo.memInfo.memTotal}");  // Example : 7991404 kB
print("GPU Controller is ${linuxDeviceInfo.cpuInfo.gpuController}");
// Example : NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)

About

License:Other


Languages

Language:Dart 51.6%Language:C++ 24.2%Language:CMake 20.3%Language:C 3.8%