Make gameRef late (#742)

This commit is contained in:
Luan Nico
2021-04-03 19:47:37 -04:00
committed by GitHub
parent 971fc09add
commit bc3820c0fa
12 changed files with 41 additions and 16 deletions

View File

@ -13,7 +13,7 @@ class MyParallaxComponent extends ParallaxComponent
with HasGameRef<ComponentParallaxGame> {
@override
Future<void> onLoad() async {
parallax = await gameRef!.loadParallax(
parallax = await gameRef.loadParallax(
[
'parallax/bg.png',
'parallax/mountain-far.png',