mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-13 03:10:42 +08:00
New linter rules (#676)
This commit is contained in:
@@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user