Skip to content

Commit 3f604b6

Browse files
committed
resolve error
1 parent 7a8d02b commit 3f604b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/common/utils/common_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class CommonUtils {
246246
return "";
247247
}
248248
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
249-
return iosInfo.model;
249+
return iosInfo.model ?? "";
250250
}
251251

252252
/**

lib/page/debug/debug_label.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Future<StringList> _getDeviceInfo() async {
6060
}
6161
IosDeviceInfo iosInfo = await deviceInfo.iosInfo;
6262
String device = await CommonUtils.getDeviceInfo();
63-
return [iosInfo.systemVersion, device];
63+
return [iosInfo.systemVersion ?? "", device];
6464
}
6565

6666
class GlobalLabel extends StatefulWidget {

0 commit comments

Comments
 (0)