Skip to content

Commit

Permalink
docs: Update step_1.md to include imports for Canvas (#3351)
Browse files Browse the repository at this point in the history
I have added the import required for the Canvas component. This tripped
me up originally as I was following this example and had to go find out
what import to use for the line `void render(Canvas canvas) {`

I did not make an issue since this is an extremely small issue and is
regarding documentation and not any real code.
  • Loading branch information
Loubear111 authored Oct 23, 2024
1 parent 291af57 commit fec4499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/tutorials/space_shooter/step_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ implemented as follows:

```dart
import 'package:flame/components.dart';
import 'package:flutter/material.dart';
class Player extends PositionComponent {
static final _paint = Paint()..color = Colors.white;
Expand Down

0 comments on commit fec4499

Please sign in to comment.