0 purchases
device info null safety
device_info_null_safety #
A Flutter plugin for getting device information on Android devices.
This package is a binding for EasyDeviceInfo.
Permissions are not handled by the library, please use permission_handler to handle permissions.
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-feature android:name="android.hardware.fingerprint" android:required="true" />
copied to clipboard
import #
import 'package:device_info_null_safety/device_info_null_safety.dart';
copied to clipboard
Battery Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> batteryInfo = await _deviceInfoNullSafety.batteryInfo;
print(batteryInfo);
copied to clipboard
Abi Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> abiInfo = await _deviceInfoNullSafety.abiInfo;
print(abiInfo);
copied to clipboard
Sensor Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
List<Map<String, dynamic>> sensorInfo = await _deviceInfoNullSafety.sensorInfo;
print(sensorInfo);
copied to clipboard
Memory Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> memoryInfo = await _deviceInfoNullSafety.memoryInfo(memoryInfoUnit: MemoryInfoUnit.gb);
print(memoryInfo);
copied to clipboard
Finger Print Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> fingerPrintInfo = await _deviceInfoNullSafety.fingerPrintInfo;
print(fingerPrintInfo);
copied to clipboard
System Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> systemInfo = await _deviceInfoNullSafety.systemInfo;
print(systemInfo);
copied to clipboard
Display Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> displayInfo = await _deviceInfoNullSafety.displayInfo;
print(displayInfo);
copied to clipboard
Config Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> configInfo = await _deviceInfoNullSafety.configInfo;
print(configInfo);
copied to clipboard
NFC Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> nfcInfo = await _deviceInfoNullSafety.nfcInfo;
print(nfcInfo);
copied to clipboard
Network Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> networkInfo = await _deviceInfoNullSafety.networkInfo;
print(networkInfo);
copied to clipboard
Location Info #
final DeviceInfoNullSafety _deviceInfoNullSafety = DeviceInfoNullSafety();
Map<String,dynamic> locationInfo = await _deviceInfoNullSafety.locationInfo;
print(locationInfo);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.