flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
9.3k stars 914 forks source link

gameRef 在1.20.0上不能用? #3332

Closed wengxianxun closed 1 month ago

wengxianxun commented 1 month ago

What happened?

如图,在1.18.0上没问题,但是1.20.0却报错了image

What do you expect?

怎么修复这个问题呢?

How can we reproduce this?

No response

What steps should take to fix this?

No response

Do have an example of where the bug occurs?

No response

Relevant log output

No response

Execute in a terminal and put output into the code block below

Output of: flutter doctor -v

Affected platforms

All

Other information

No response

Are you interested in working on a PR for this?

spydon commented 1 month ago

Hi, this is an English only bug tracker. I can see what your problem is though, change gameRef to game and it should work.