New linter rules (#676)

This commit is contained in:
Luan Nico
2021-02-23 12:16:23 -05:00
committed by GitHub
parent 6329a12150
commit 9c38c9bd04
103 changed files with 606 additions and 561 deletions

View File

@@ -36,9 +36,9 @@ class MyGame extends BaseGame {
color: Colors.redAccent,
);
const NUM = 100;
const num = 100;
final r = Random();
for (int i = 0; i < NUM; ++i) {
for (var i = 0; i < num; ++i) {
final sx = r.nextInt(8) * 128.0;
final sy = r.nextInt(8) * 128.0;
final x = r.nextInt(size.x.toInt()).toDouble();
@@ -49,9 +49,11 @@ class MyGame extends BaseGame {
);
}
add(SpriteBatchComponent.fromSpriteBatch(
spriteBatch,
blendMode: BlendMode.srcOver,
));
add(
SpriteBatchComponent.fromSpriteBatch(
spriteBatch,
blendMode: BlendMode.srcOver,
),
);
}
}