-
Notifications
You must be signed in to change notification settings - Fork 155
Missing scaledWidth and scaledHeight from ResponsiveBreakpointData on new version 1.0.0 #145
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
Comments
+1 I am also facing same challenge, I am doing few computations based on these variables/values and now I can not handle it with latest version. |
I can clearly see in the code here it is documented but there is no work done at calculating scaled values
and here
|
@rayliverified any help? |
Same problem here. |
What did is that, in the if (ResponsiveBreakpoints.of(context).screenWidth <= 450) {
return ResponsiveScaledBox(width: 400, child: child);
} |
Thank you for the feedback. How though did you calculate |
@rayliverified, was sorry to hear you're suffering from Long Covid. Can't imagine how that's affecting your daily life. May I ask you to weigh in briefly on how we can bypass this issue? Maybe we can fix this ourselves with a tiny bit of guidance on how to calculate the values ourselves in 1.1.0? Found some calculations in the previous versions, but not sure how to get them to work in the 1.1.0 release?
|
Thank you for your patience. Migration guide is up! |
The AutoScale functionality has been moved to
|
Hey @rayliverified, What's the equivalent of |
The MediaQueryData is updated directly whenever a ResponsiveScaledBox is used. So you can get the scaled width and height via This replaces the previous ScaledWidth and ScaledHeight variables. |
I was actually asking about ResponsiveBreakpoints.of(context).screenHeight |
In older version 0.2.0 i used to call this value with ResponsiveWrapper.of(context).scaledWidth needed by the onboarding_overlay package to be responsive (since version 3.1.0 of the package.
But in the 1.0.0 update i don't see this value anymore, only screenWidth and screenHeight are available now so my app tutorial is broken...
Is there a newer solution to get these values ? Am i missing something ?
I'd like to get them as before like this now : ResponsiveBreakpoints.of(context).scaledWidth
Thanks.
The text was updated successfully, but these errors were encountered: