my_device_info_plus

Creator: coderz1093

Last updated:

0 purchases

my_device_info_plus Image
my_device_info_plus Images
Add to Cart

Description:

my device info plus

my_device_info_plus #
Plugin to get all device informations
Getting Started #
Add into your pubspec.yaml
==========================
my_device_info_plus:
copied to clipboard
Get device info
================================================
String? _platform = "unknown";
String? _model = "unknown";
String? _manufacturer = "unknown";
String? _os_version = "unknown";
String? _sdk_version = "unknown";

Future<dynamic> getDeviceInfo() async {
var result = await MyDeviceInfoPlus.getDeviceInfo();
setState(() {
print(result);
_model = result['model'];
_manufacturer = result['manufacturer'];
_os_version = result['os_version'];
_sdk_version = result['sdk_version'];
_platform = result['platform'];
});
}

Text('Model: $_model\n'),
Text('Manufacturer: $_manufacturer\n'),
Text('Os_version: $_os_version\n'),
Text('Sdk_version: $_sdk_version\n'),
Text('Platform: $_platform\n'),

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.