Apply suggestions from code review

Co-authored-by: Allison Ryan <77211884+allisonryan0002@users.noreply.github.com>
Co-authored-by: Alejandro Santiago <dev@alestiago.com>
pull/101/head
Erick 4 years ago committed by Erick Zanardo
parent b42597ac1e
commit 25d0c8a45d

@ -10,15 +10,15 @@ import 'package:pinball_components/pinball_components.dart' hide Assets;
/// {@template spaceship}
/// A [Blueprint] which creates the spaceship feature.
/// P@endtemplate}
/// {@endtemplate}
class Spaceship extends Forge2DBlueprint {
/// {@macro spaceship}
Spaceship({required this.position});
/// Total size of the spaceship
/// Total size of the spaceship.
static final size = Vector2(24, 18);
/// The [position] that the elements will be created
/// The [position] where the elements will be created
final Vector2 position;
@override

@ -42,6 +42,8 @@ void main() {
testWidgets('renders correctly', (tester) async {
final game = TestGame();
// TODO(erickzanardo): This should be handled by flame test.
// refctor it when https://github.com/flame-engine/flame/pull/1501 is merged
await tester.runAsync(() async {
await tester.pumpWidget(GameWidget(game: game));
await game.ready();

Loading…
Cancel
Save