fix: sdkInt fallback to 0
This commit is contained in:
parent
c6e658e256
commit
85529105be
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ class PlatformFFI {
|
|||
AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;
|
||||
name = '${androidInfo.brand}-${androidInfo.model}';
|
||||
id = androidInfo.id.hashCode.toString();
|
||||
androidVersion = androidInfo.version.sdkInt;
|
||||
androidVersion = androidInfo.version.sdkInt ?? 0;
|
||||
} else if (Platform.isIOS) {
|
||||
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
|
||||
name = iosInfo.utsname.machine ?? '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue