Trivial nit fixes (#12285)
This commit is contained in:
@@ -23,7 +23,7 @@ DeviceOperatingSystem deviceOperatingSystem = DeviceOperatingSystem.android;
|
||||
/// Discovers available devices and chooses one to work with.
|
||||
abstract class DeviceDiscovery {
|
||||
factory DeviceDiscovery() {
|
||||
switch(deviceOperatingSystem) {
|
||||
switch (deviceOperatingSystem) {
|
||||
case DeviceOperatingSystem.android:
|
||||
return new AndroidDeviceDiscovery();
|
||||
case DeviceOperatingSystem.ios:
|
||||
|
||||
@@ -101,7 +101,7 @@ Future<Null> saveScreenshots(List<String> fromPaths, List<String> largeNames, Li
|
||||
for (int index = 0; index < uploads.length; index += 1)
|
||||
uploads[index] = new Upload(fromPaths[index], largeNames[index], smallNames[index]);
|
||||
|
||||
while(uploads.any(Upload.isNotComplete)) {
|
||||
while (uploads.any(Upload.isNotComplete)) {
|
||||
final HttpClient client = new HttpClient();
|
||||
uploads = uploads.where(Upload.isNotComplete).toList();
|
||||
await Future.wait(uploads.map((Upload upload) => upload.run(client)));
|
||||
|
||||
@@ -265,7 +265,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
);
|
||||
|
||||
String backgroundMessage;
|
||||
switch(_dismissDirection) {
|
||||
switch (_dismissDirection) {
|
||||
case DismissDirection.horizontal:
|
||||
backgroundMessage = "Swipe in either direction";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user