-
Notifications
You must be signed in to change notification settings - Fork 151
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
Unexpected null value #154
Comments
Thank you for reporting the issue and providing the sample code. Good issue! |
Your responsive value doesn't cover all screen widths. So if the device is between 450 and 800, it returns a null value. Either provide a default value ResponsiveValue(defaultValue: 450), or set conditions that cover all possible screen widths.
|
Conditions are set in builder in MaterialApp. Same as yours. |
I had the same issue. You need to set the default value here:
|
When i met it in the first time, It has crashed my features when i updated to new version of this package, i took a while to found out the reason. |
Flutter Channel stable, 3.13.2
Responsive framework 1.1.1
On web and macOS I got error when resizing window:
This is builder in MaterialApp, without it, app works without null exception:
The text was updated successfully, but these errors were encountered: