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

存在并发问题 #24

Closed
long51xy opened this issue May 15, 2020 · 3 comments
Closed

存在并发问题 #24

long51xy opened this issue May 15, 2020 · 3 comments

Comments

@long51xy
Copy link

当一个EasyLoading.showSuccess('11111');连续除非二次就报错,比如
onTap: () { print('Get OTP Code'); EasyLoading.showSuccess('11111'); }
按钮联系点击二次出现异常
No MediaQuery widget found.
The relevant error-causing widget was
FlutterEasyLoading

@long51xy
Copy link
Author

感觉你写的插件不错,不用自己写了,如果这个并非问题我解决我们还得封装一层队列排队去控制显示,这样就麻烦了

@navyzhou926
Copy link

在一个页面中快速点击不能的输入框TextField,则会报错

@navyzhou926
Copy link

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#8b39f](dirty, state: _OverlayEntryWidgetState#4272c):
No MediaQuery widget found.

_OverlayEntryWidget widgets require a MediaQuery widget ancestor.
The specific widget that could not find a MediaQuery ancestor was: _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#8b39f]
dirty
state: _OverlayEntryWidgetState#4272c
The ownership chain for the affected widget is: "_OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#8b39f] ← _Theatre ← Overlay ← Directionality ← FlutterEasyLoading ← MyApp ← [root]"

Typically, the MediaQuery widget is introduced by the MaterialApp or WidgetsApp widget at the top of your application widget tree.

The relevant error-causing widget was:
FlutterEasyLoading file:///Users/apple/git/flutter_app/lib/main.dart:117:16
When the exception was thrown, this was the stack:
#0 debugCheckHasMediaQuery. (package:flutter/src/widgets/debug.dart:215:7)
#1 debugCheckHasMediaQuery (package:flutter/src/widgets/debug.dart:227:4)
#2 _MaterialTextSelectionControls.buildToolbar (package:flutter/src/material/text_selection.dart:645:12)
#3 TextSelectionOverlay._buildToolbar (package:flutter/src/widgets/text_selection.dart:556:34)
#4 _OverlayEntryWidgetState.build (package:flutter/src/widgets/overlay.dart:177:34)

@nslogx nslogx closed this as completed Sep 17, 2020
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

3 participants