Skip to content

Commit 4363377

Browse files
committed
fix formatting
1 parent e328fed commit 4363377

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

lib/src/qr_code_scanner.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,14 @@ class QRViewController {
312312

313313
// iOS version is sth like 26.0 or 26.0.1, etc.
314314
// We cannot assume it would parse as a double, so we need to handle that.
315-
final iOSVersion = osVersionSplit.length > 1 ? osVersionSplit[1] : "$_defaultIOSMajorVersionOnUnknown.0";
316-
317-
final iOSMajorVersion =
318-
int.tryParse(iOSVersion.split('.').firstOrNull ?? '$_defaultIOSMajorVersionOnUnknown') ??
319-
_defaultIOSMajorVersionOnUnknown;
315+
final iOSVersion = osVersionSplit.length > 1
316+
? osVersionSplit[1]
317+
: "$_defaultIOSMajorVersionOnUnknown.0";
318+
319+
final iOSMajorVersion = int.tryParse(
320+
iOSVersion.split('.').firstOrNull ??
321+
'$_defaultIOSMajorVersionOnUnknown') ??
322+
_defaultIOSMajorVersionOnUnknown;
320323
final isAtLeastIOS18 = iOSMajorVersion >= 18;
321324

322325
if (isAtLeastIOS18) {

0 commit comments

Comments
 (0)