-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Null check operator used on a null value #533
Comments
i have the same issue inside testWidgets
The following _CastError was thrown building Builder(dirty): |
Same with me |
localizationsDelegates: context.localizationDelegates, |
Same problem here. Did anyone find a solution? |
Same here. Any updates? |
This is mostly because the parent widget still not fully initialized, Which means the context still doesn't have
|
@mohkoma I had the same implementation as you mentioned. If I have the following setup: |
@Mar1anne It's hard for me to find the issue without seeing the code, but I assume that the Project B still doesn't have the context that has a loaded easy localisation. Therefore, try to wrap the Project B inside another builder also? |
@mohkoma Maybe, I guess that should work. I changed my implementation since then, but I'll test this out as soon as I got the time. Thanks! |
Several people seem to have this issue, could someone post a sample to reproduce? I don't think we have a bug here, but maybe something the docs should cover. |
@mohkoma ur solution fixed it for me thanks. |
Closing since the solution seems to work. Thanks @mohkoma |
Setup easy_localization: 3.0.1 as in example on package but got error Null check operator used on a null value upon running the app.
My IDE points the error to line 48
EasyLocalization.of(this)!.delegates;
on on fileeasy_localization/src/public_ext.dart
.The text was updated successfully, but these errors were encountered: