Skip to content
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

getProportionateScreenHeight and getProportionateScreenWidth returns an error #6

Closed
lurdharry opened this issue Oct 26, 2020 · 1 comment

Comments

@lurdharry
Copy link

lurdharry commented Oct 26, 2020

whenever I call the function.
I got the error below.

flutter: The method 'toDouble' was called on null.
flutter: Receiver: null
flutter: Tried calling: toDouble()

I noticed that

screenWidth = _mediaQueryData.size.width;
screenHeight = _mediaQueryData.size.height;

these data return null

@abuanwar072
Copy link
Owner

Please call SizeConfig.init(conttext) on your starting screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants