fix: Set margins of JoystickComponent properly (#3019)

The margins of the `JoystickComponent` weren't set properly, this PR
fixes that.
This commit is contained in:
Lukas Klingsbo
2024-02-05 12:02:02 +01:00
committed by GitHub
parent bf8aecdbfa
commit e27818d872
3 changed files with 29 additions and 5 deletions

View File

@ -20,6 +20,11 @@ class JoystickAdvancedExample extends FlameGame with HasCollisionDetection {
the buttons.
''';
JoystickAdvancedExample()
: super(
camera: CameraComponent.withFixedResolution(width: 1200, height: 800),
);
late final JoystickPlayer player;
late final JoystickComponent joystick;
late final TextComponent speedText;