Unverified Commit 308b5437 authored by Pierre-Louis's avatar Pierre-Louis Committed by GitHub

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
parent 332c22f3
...@@ -17,8 +17,9 @@ void main() { ...@@ -17,8 +17,9 @@ void main() {
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async { addTearDown(() async {
if (gesture != null) if (gesture != null) {
return gesture.removePointer(); return gesture.removePointer();
}
}); });
await gesture.addPointer(); await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0)); await gesture.moveTo(const Offset(1.0, 1.0));
......
...@@ -17,8 +17,9 @@ void main() { ...@@ -17,8 +17,9 @@ void main() {
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async { addTearDown(() async {
if (gesture != null) if (gesture != null) {
return gesture.removePointer(); return gesture.removePointer();
}
}); });
await gesture.addPointer(); await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0)); await gesture.moveTo(const Offset(1.0, 1.0));
......
...@@ -17,8 +17,9 @@ void main() { ...@@ -17,8 +17,9 @@ void main() {
TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); TestGesture? gesture = await tester.createGesture(kind: PointerDeviceKind.mouse);
addTearDown(() async { addTearDown(() async {
if (gesture != null) if (gesture != null) {
return gesture.removePointer(); return gesture.removePointer();
}
}); });
await gesture.addPointer(); await gesture.addPointer();
await gesture.moveTo(const Offset(1.0, 1.0)); await gesture.moveTo(const Offset(1.0, 1.0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment