Closed Narven closed 1 year ago
Hi there, I was puzzled at first too, it comes from the "dart:ui" import, must be some kind of global (I'm a Dart and Flutter Newbie) from this module.
Yes it's a global value passed to the fromWindow method, in this case used for calculating the screen dimensions
"window" is supose to come from where?
after 10 seconds of reading a book
https://github.com/PacktPublishing/Building-Games-with-Flutter/blob/main/chapter01/lib/main.dart#L40