Flutter: How to get device details like UUID, deviceName?
We will use device_info package for finding these details. Use this link to check latest version of the package. Add package_info : ^0.4.0+3 in pubspec.yaml file of your project. below dependencies : flutter : sdk : flutter package_info : ^0.4.0+3 Using next code sample you can retrieve the details. Future<List<String>> getDeviceDetails() async { String deviceName; String deviceVersion; String identifier; final DeviceInfoPlugin deviceInfoPlugin = DeviceInfoPlugin(); try { if (Platform.isAndroid) { var build = await deviceInfoPlugin.androidInfo; deviceName = build.model; deviceVersion = build.version.toString(); identifier = build.androidId; //UUID for Android ...