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

Error on double tap in TextFormField #46

Closed
jjvillavicencio opened this issue Feb 4, 2020 · 3 comments · Fixed by #47
Closed

Error on double tap in TextFormField #46

jjvillavicencio opened this issue Feb 4, 2020 · 3 comments · Fixed by #47

Comments

@jjvillavicencio
Copy link

I/flutter (10337): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ I/flutter (10337): The following assertion was thrown building I/flutter (10337): _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#35d2a](dirty, state: I/flutter (10337): _OverlayEntryWidgetState#42386): I/flutter (10337): No MediaQuery widget found. I/flutter (10337): _OverlayEntryWidget widgets require a MediaQuery widget ancestor. I/flutter (10337): The specific widget that could not find a MediaQuery ancestor was: I/flutter (10337): _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#35d2a] I/flutter (10337): The ownership chain for the affected widget is: I/flutter (10337): "_OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#35d2a] ← _Theatre ← Overlay ← I/flutter (10337): Directionality ← _ToastTheme ← OKToast ← DynamicTheme ← MyApp ← [root]" I/flutter (10337): Typically, the MediaQuery widget is introduced by the MaterialApp or WidgetsApp widget at the top of I/flutter (10337): your application widget tree. I/flutter (10337): I/flutter (10337): The relevant error-causing widget was: I/flutter (10337): Overlay I/flutter (10337): ../…/widget/oktoast.dart:86 I/flutter (10337):

../…/widget/oktoast.dart:86

@override Widget build(BuildContext context) { var overlay = Overlay( initialEntries: [ OverlayEntry( builder: (ctx) { _contextMap[this] = ctx; return widget.child; }, ), ], );

@MoacirSchmidt
Copy link

MoacirSchmidt commented Feb 5, 2020

Same occurs for me!

image

PS F:\> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, v1.14.6, on Microsoft Windows [Version 10.0.17134.1246], locale pt-BR)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (3 available)

• No issues found!

@CaiJingLong
Copy link
Member

How to reproduce?

@MoacirSchmidt
Copy link

here you have a case:

https://github.com/MoacirSchmidt/mq_not_found

just double tap (on device) or double click (on emulator) to see the message (no problem on flutter web)!

Thank you very much for your excellent package!

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

Successfully merging a pull request may close this issue.

3 participants