Use curly_braces_in_flow_control_structures for non-flutter packages (#104629)
* Use `curly_braces_in_flow_control_structures` for `packages/flutter_driver` * Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens` * Use `curly_braces_in_flow_control_structures` for `packages/flutter_goldens_client` * Use `curly_braces_in_flow_control_structures` for `packages/flutter_localizations` * Use `curly_braces_in_flow_control_structures` for `packages/flutter_test` * Use `curly_braces_in_flow_control_structures` for `packages/flutter_web_plugins` * fix comments * Use `curly_braces_in_flow_control_structures` for `packages/integration_test` * fix indentation
This commit is contained in:
@@ -416,12 +416,13 @@ void main() {
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
else if (i != logs.length - 1)
|
||||
} else if (i != logs.length - 1) {
|
||||
expect(logs[i], 'move $b');
|
||||
else
|
||||
} else {
|
||||
expect(logs[i], 'up 0');
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -472,12 +473,13 @@ void main() {
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
else if (i != logs.length - 1)
|
||||
} else if (i != logs.length - 1) {
|
||||
expect(logs[i], 'move $b');
|
||||
else
|
||||
} else {
|
||||
expect(logs[i], 'up 0');
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -503,12 +505,13 @@ void main() {
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
else if (i != logs.length - 1)
|
||||
} else if (i != logs.length - 1) {
|
||||
expect(logs[i], 'move $b');
|
||||
else
|
||||
} else {
|
||||
expect(logs[i], 'up 0');
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -535,12 +538,13 @@ void main() {
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
else if (i != logs.length - 1)
|
||||
} else if (i != logs.length - 1) {
|
||||
expect(logs[i], 'move $b');
|
||||
else
|
||||
} else {
|
||||
expect(logs[i], 'up 0');
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -599,12 +603,13 @@ void main() {
|
||||
|
||||
const String b = '$kSecondaryMouseButton';
|
||||
for(int i = 0; i < logs.length; i++) {
|
||||
if (i == 0)
|
||||
if (i == 0) {
|
||||
expect(logs[i], 'down $b');
|
||||
else if (i != logs.length - 1)
|
||||
} else if (i != logs.length - 1) {
|
||||
expect(logs[i], 'move $b');
|
||||
else
|
||||
} else {
|
||||
expect(logs[i], 'up 0');
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user