Skip to content

Commit

Permalink
Use curly_braces_in_flow_control_structures for sample code (#104617)
Browse files Browse the repository at this point in the history
* use `flutter_lints` for sample code

* update packages

* Revert "update packages"

This reverts commit 14da3c69a8da9a093ad9c2acd3fc5d6c7f7751ed.

* revert
  • Loading branch information
guidezpl authored May 26, 2022
1 parent 332c22f commit 308b543
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/api/test/material/tooltip/tooltip.0_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ void main() {

TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async {
if (gesture != null)
if (gesture != null) {
return gesture.removePointer();
}
});
await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0));
Expand Down
3 changes: 2 additions & 1 deletion examples/api/test/material/tooltip/tooltip.1_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ void main() {

TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async {
if (gesture != null)
if (gesture != null) {
return gesture.removePointer();
}
});
await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0));
Expand Down
3 changes: 2 additions & 1 deletion examples/api/test/material/tooltip/tooltip.2_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ void main() {

TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async {
if (gesture != null)
if (gesture != null) {
return gesture.removePointer();
}
});
await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0));
Expand Down

0 comments on commit 308b543

Please sign in to comment.