mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Detail number of available devices in doctor summary (#14781)
This commit is contained in:
parent
b6d8615aed
commit
382ee4baa4
@ -542,7 +542,12 @@ class DeviceValidator extends DoctorValidator {
|
||||
messages = await Device.descriptions(devices)
|
||||
.map((String msg) => new ValidationMessage(msg)).toList();
|
||||
}
|
||||
return new ValidationResult(devices.isEmpty ? ValidationType.partial : ValidationType.installed, messages);
|
||||
|
||||
if (devices.isEmpty) {
|
||||
return new ValidationResult(ValidationType.partial, messages);
|
||||
} else {
|
||||
return new ValidationResult(ValidationType.installed, messages, statusInfo: '${devices.length} available');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user