0 purchases
android device info
android_device_info #
A Flutter plugin for getting device information on Android devices.
This package is a binding for EasyDeviceInfo.
usage #
import 'package:android_device_info/android_device_info.dart';
var batteryInfo = await AndroidDeviceInfo().getBatteryInfo();
print(batteryInfo);
copied to clipboard
{isBatteryPresent: true,
batteryPercentage: 71,
batteryTechnology: Li-ion,
chargingSource: AC,
batteryTemperature: 0.0,
batteryHealth: Having issues,
isDeviceCharging: false,
batteryVoltage: 0}
copied to clipboard
permissions #
Add required permissions to:
<your project>/android/app/src/main/AndroidManifest.xml
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- Network Info -->
<uses-permission android:name="android.permission.INTERNET" /> <!-- Network Info -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- WiFI Info -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <!-- SIM Info / Phone # -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- Location Info -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- Location Info -->
<uses-permission android:name="android.permission.USE_FINGERPRINT" /> <!-- Fingerprint Info -->
copied to clipboard
Permissions are not handled by the library, please use permission_handler to handle permissions.
implemented apis #
Device getDeviceInfo()
Memory getMemoryInfo()
Battery getBatteryInfo()
Sensors getSensorInfo()
Network getNetworkInfo()
Display getDisplayInfo()
NFC getNfcInfo()
SIM getSimInfo()
Config getConfigInfo()
Location getLocationInfo()
ABI getAbiInfo()
Fingerprint getFingerprintInfo()
demo app #
check Flutter Android Device Info for a working demo.
credits #
Nishant Srivastava for EasyDeviceInfo.
license #
Apache 2.0
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.