OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.87k stars 493 forks source link

FlutterWindow? window, #449

Closed hailuongsl97 closed 1 year ago

hailuongsl97 commented 1 year ago

I have a problem related to flutter_screenutil AppData/Local/Pub/Cache/hosted/pub.dev/flutter_screenutil-5.6.0/lib/src/screen_util.dart:58:5: Error: Type 'FlutterWindow' not found. FlutterWindow? window, ^^^^^^^^^^^^^ image pls support for me!

stralz commented 1 year ago

Got an exact same error, please help.

stralz commented 1 year ago

I've found a fix, in my Dockerfile i replaced flutter channel master to flutter channel stable.

hailuongsl97 commented 1 year ago

I've found a fix, in my Dockerfile i replaced flutter channel master to flutter channel stable. Oh it worked! Thank you for your help

lesslielee commented 1 year ago

I've found a fix, in my Dockerfile i replaced flutter channel master to flutter channel stable. Thanks! @stralz

I hit the same issue of 'FlutterWindow? window,' when I was in master channel [✓] Flutter (Channel master, 3.9.0-18.0.pre.2, on Microsoft Windows [版本 10.0.19044.2728], locale zh-CN) And FIXED by switching back to stable channel [✓] Flutter (Channel stable, 3.7.10, on Microsoft Windows [版本 10.0.19044.2728], locale zh-CN)

BTW, though it reports issues from flutter doctor when using stable channel but flutter actually can build and run properly on Windows 10 zh-CN edition. So I choose to simply ignore the flutter doctor reporting issue below.

"[✓] Flutter (Channel stable, 3.7.10, on Microsoft Windows [版本 10.0.19044.2728], locale zh-CN) [✗] Windows Version (Unable to confirm if installed Windows version is 10 or greater)"