Fixing warnings and nits on our examples

This commit is contained in:
Luan Nico
2019-10-14 17:15:17 -04:00
parent 0293fe6398
commit 15955e7d28
6 changed files with 20 additions and 16 deletions

View File

@ -34,7 +34,7 @@ class Square extends PositionComponent {
prepareCanvas(c);
c.drawRect(Rect.fromLTWH(0, 0, width, height), Palette.white.paint);
c.drawRect(Rect.fromLTWH(0, 0, 3, 3), Palette.red.paint);
c.drawRect(const Rect.fromLTWH(0, 0, 3, 3), Palette.red.paint);
c.drawRect(Rect.fromLTWH(width / 2, height / 2, 3, 3), Palette.blue.paint);
}