Fix parallax fullscreen bug when game is resized (#887)

* Fix parallax fullscreen bug when game is resized

* Test

Signed-off-by: Lukas Klingsbo <me@lukas.fyi>

* Fix imports

* Remove accidental line

* Re-add mustCallSuper on onGameResize
This commit is contained in:
Lukas Klingsbo
2021-07-29 14:23:37 +02:00
committed by GitHub
parent 1034ca850b
commit 7e4bc1464e
3 changed files with 13 additions and 6 deletions

View File

@ -9,8 +9,7 @@ class ComponentParallaxGame extends BaseGame {
}
}
class MyParallaxComponent extends ParallaxComponent
with HasGameRef<ComponentParallaxGame> {
class MyParallaxComponent extends ParallaxComponent<ComponentParallaxGame> {
@override
Future<void> onLoad() async {
parallax = await gameRef.loadParallax(