-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 Safety issue on the given example! #11545
Comments
@kishan-dhankecha, what version of Flutter/Dart are you using? |
Note that this issue of null check only happens when a user forgets to wrap the widget with |
@domesticmouse, can you weigh in on this? |
Given this is an exception that is only thrown when the developer goofs, I don't see the need to make the suggested change. I'd prefer the code to break, given it is already broken. |
Yes, @domesticmouse you are right here. It would help more if the developer discovered this if they made this mistake. I am closing this. Thanks. |
Page URL
https://docs.flutter.dev/cookbook/effects/shimmer-loading/
Page source
https://github.com/flutter/website/tree/main/src/content/cookbook/effects/shimmer-loading.md
Describe the problem
There is an issue with the code provided in the example below. When I copied the whole code from the interactive editor in the website and pasted it into my project to use the
ShimmerLoading
widget, I found that I get the classicNull check operator used on a null value
error. See the issue in the below snippet.Expected fix
It should be changed to this,
Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: