-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用fontSize,Null check operator used on a null value #362
Comments
这应该不会是库的问题吧 |
只能在 width 和 height 里面使用,fontSize,EdgeInsets.only(left: 16), 这些地方,都没法用计算的属性,完全按照文档来的,很纳闷是怎么回事。 |
This is also happening with me also, when I remove the 16.sp, 20.h or 20.w then code is working fine. |
English: Just use width and height, fontSize,EdgeInsets.only(left: 16), This area,Metrical attributes for the death method,Completely massage archives,It's very good. So this null operator crash seems to happen to me when I use width .w or .h Any ideas? |
我采用的第二种初始化方式,使用的全局的context 解决了这个问题,这是我的示例代码
SplashPage
|
This issue also happening to us We are using GetX to open navigation
|
try latest version |
Hello @cjango @SumeetMourya @jonchui @BIG-BEARC , I have recently publish the new version of the library. Go check it out and if it works fine for you please close this issue, or else drop error log here. Thank you. |
The issue persists in newer version. The issue comes up after opening and closing BottomSheet |
@junaidlodhi22, If you don't mind, please try with fix-362 branch instead and tell us if it works with you so we can ship a stable version in pub.dev. dependencies:
flutter_screenutil: ^5.5.3 |
Yes, this is working right now. We will also send this new update in testing and let's see if the Testing department clears it. But So far so good. thanks |
Ok @junaidlodhi22 , please let us know whenever your team confirm. Thank you. |
flutter version 3.0 combined with getx to solve the problem。 |
@ZyElite, branch fix-362 doesn't work for you?! |
Yes, the fix is working fine. |
@junaidlodhi22 Thank you for your contribution. |
style: TextStyle(
color: Colors.black,
fontSize: 16.sp,
),
报错:
_CastError (Null check operator used on a null value)
The text was updated successfully, but these errors were encountered: