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

No MediaQuery widget found error #13

Closed
luis-cruzt opened this issue Jul 24, 2020 · 8 comments
Closed

No MediaQuery widget found error #13

luis-cruzt opened this issue Jul 24, 2020 · 8 comments

Comments

@luis-cruzt
Copy link

Hi, i'm using the example code provided in your package, but when i add a textformfield and double tap it the error:
No MediaQuery widget found error appears.

Also, i've been searching and this is what i found:
https://stackoverflow.com/questions/62178788/flutter-easyloading-library-no-mediaquery-widget-found-error

That works with that library, but how to fix with yours?

@CaiJingLong
Copy link
Owner

Use next code to include the library.

MaterialApp(
  builder: (context, widget) {
    return LoadingProvider(
      child: widget,
    );
  },
);

@luis-cruzt
Copy link
Author

Didn't work :(

@vytautas-pranskunas-
Copy link

Worked for me

@harimayco
Copy link

Use next code to include the library.

MaterialApp(
  builder: (context, widget) {
    return LoadingProvider(
      child: widget,
    );
  },
);

worked for me, Thanks mate!

@luis-cruzt
Copy link
Author

luis-cruzt commented Oct 3, 2020

Well, it doesn't work if you wrap your application like this:
LoadingProvider( child: MaterialApp(), );

Using the following code works:
void main() { runApp( LoadingProvider( child: MyApp(), ), ); }

I was using the widget MultiProvider maybe that was interfering with this widget.

I'll close this issue now as it seems that no one has this issue now.

@GabrielF9
Copy link

@luis-cruzt i'm having the same issue using the MultiProvider, any update in user? Another lib that makes the same as this?

@luis-cruzt
Copy link
Author

@GabrielF9 no sorry, i opted to use this package and is working fine in my app.

@GabrielF9
Copy link

@luis-cruzt man, thanks so much, me and my job friends sends the best love you to you hahaha!! Saved the deploy friday

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

5 participants