Skip to content

Commit 308b543

Browse files
authored
Use curly_braces_in_flow_control_structures for sample code (#104617)
* use `flutter_lints` for sample code * update packages * Revert "update packages" This reverts commit 14da3c69a8da9a093ad9c2acd3fc5d6c7f7751ed. * revert
1 parent 332c22f commit 308b543

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/api/test/material/tooltip/tooltip.0_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ void main() {
1717

1818
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
1919
addTearDown(() async {
20-
if (gesture != null)
20+
if (gesture != null) {
2121
return gesture.removePointer();
22+
}
2223
});
2324
await gesture.addPointer();
2425
await gesture.moveTo(const Offset(1.0, 1.0));

examples/api/test/material/tooltip/tooltip.1_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ void main() {
1717

1818
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
1919
addTearDown(() async {
20-
if (gesture != null)
20+
if (gesture != null) {
2121
return gesture.removePointer();
22+
}
2223
});
2324
await gesture.addPointer();
2425
await gesture.moveTo(const Offset(1.0, 1.0));

examples/api/test/material/tooltip/tooltip.2_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ void main() {
1717

1818
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
1919
addTearDown(() async {
20-
if (gesture != null)
20+
if (gesture != null) {
2121
return gesture.removePointer();
22+
}
2223
});
2324
await gesture.addPointer();
2425
await gesture.moveTo(const Offset(1.0, 1.0));

0 commit comments

Comments
 (0)