0 purchases
device info x
device_info_X #
System ,CPU ,ANDROID ,DRM ,MEMEORY ,CAMERA ,BATTERY ,DISPLAY ,THERMAL ,NETWORK ,SIMINFO ,SYSTEMFILES
Platform Support #
Android
iOS
MacOS
Web
Linux
Windows
✔️
❌
❌
❌
❌
❌
Features #
[✅] - Stable
[❗] - Not fully Stable(Some information cannot be retrived. Use with caution)
[❌] - Experimental ( Cannot guarantee,still not added to plugin yet)
Supported Retriving Information about
[❗] Android
[✅] System
[❗] Battery
[✅] Camera
[❗] CPU
[✅] Display
[✅] DRM
[✅] Memory
[❗] Network
[❌] SIM
[❌] System Files
[❌] Thermal Info
Screenshots of example app #
Android Info
Battery
Camera
CPU
Display
DRM
Memory
Network
System
Installation #
Add dependencies as
device_info:
git:
url: https://github.com/Lucidplus-IT-Solution/device_info_plugin.git
ref: main
copied to clipboard
Usage #
Add required pemission to AndroidManifest.xml
<!-- Include only if you need to access camera & storage info. -->
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<!--End Include only if you need to access camera. -->
<!-- Include only if you need to access phone info. -->
<uses-permission
android:name="android.permission.WRITE_SETTINGS"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<!-- End.Include only if you need to access phone info. -->
<!-- Include only if you need to access network info. -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<!-- Always include this permission -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<!-- Include only if your app benefits from precise location access. -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
copied to clipboard
import the library
import 'package:device_info_x/device_info_x.dart';
copied to clipboard
Get a DeviceInfoX Instance
DeviceInfoX deviceInfox = DeviceInfoX();
copied to clipboard
Usage
final result = await deviceInfo.getAndroid();
if (result != null) {
final map = result.toMap(); ///Convert to Map is Possible
}
copied to clipboard
Methods Available #
getAndroidDeviceInfo() - Get all info
( System,CPU,ANDROID,DRM,MEMEORY,CAMERA,BATTERY,DISPLAY,THERMAL,NETWORK,SIMINFO,SYSTEMFILES)
copied to clipboard
Features that will be added #
✅ Added basic device info only supports android for now
❌ Will add support for iOS
❌ Remove depreceated library
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.