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

使用该插件报错error G4127D1E8: The getter 'useInheritedMediaQuery' isn't defined for the class 'ScreenUtilInit Function()' #454

Closed Sakura-1205 closed 1 year ago

Sakura-1205 commented 1 year ago

/D:/%E5%AE%89%E8%A3%85/Flutter/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_screenutil-5.6.1/lib/src/screenutil_init.dart(72,16): error G4127D1E8: The getter 'useInheritedMediaQuery' isn't defined for the class 'ScreenUtilInit Function()'. [E:\Commissioning_app\fsu_tool\build\windows\flutter\flutter_assemble.vcxproj]

lizhuoyuan commented 1 year ago

放一下初始化代码

Sakura-1205 commented 1 year ago

image

Sakura-1205 commented 1 year ago

Flutter SDK : 3.3.10 Dart Sdk : 2.18.6 flutter_screenutil: ^5.6.0

Sakura-1205 commented 1 year ago

FAILURE: Build failed with an exception.

BUILD FAILED in 11s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

可能是这个错误导致的?我导入其它插件也报错误,这个有什么解决方法么

lizhuoyuan commented 1 year ago

没看到有用的日志啊

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.