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

LateError (LateInitializationError: Field 'width' has not been initialized.) #57

Open
Abolfazl-MI opened this issue Nov 7, 2022 · 3 comments

Comments

@Abolfazl-MI
Copy link

Abolfazl-MI commented Nov 7, 2022

hello devs ,I just had add to sizer to my project and I use it in my code and when I run
I face this issue
Flutter 3.3.4 • channel stable • https://github.com/flutter/flutter.git
sizer: ^2.0.15 version

@Narven
Copy link

Narven commented Nov 15, 2022

I also found that issue:

according to https://pub.dev/documentation/sizer/latest/ I think are supposed to wrap MaterialApp like this:

    ResponsiveSizer(
      builder: (context, orientation, deviceType) {
        return MaterialApp();
      }
 )

But ResponsiveSizer does not exist or is recognized anywhere... after importing sizer. I think that was supposed to take care of initialization... but I think this is dead.

@Narven
Copy link

Narven commented Nov 15, 2022

According to this other reported issue: #52

You are to wrap with Sizer NOT ResponsiveSizer

So I'm assuming is:

Sizer(
      builder: (context, orientation, deviceType) {
        return MaterialApp();
      }
 )

@Narven
Copy link

Narven commented Nov 15, 2022

Looks like there is a PR already for it https://github.com/TechnoUrmish/Sizer/pull/42/files

But it looks like this is a dead project.

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