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

长按 输入框 报错 #12

Closed
benmo1602 opened this issue Apr 10, 2020 · 0 comments
Closed

长按 输入框 报错 #12

benmo1602 opened this issue Apr 10, 2020 · 0 comments

Comments

@benmo1602
Copy link

flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown building
flutter: _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#53640](dirty, state:
flutter: _OverlayEntryWidgetState#0166b):
flutter: No MediaQuery widget found.
flutter: _OverlayEntryWidget widgets require a MediaQuery widget ancestor.
flutter: The specific widget that could not find a MediaQuery ancestor was:
flutter: _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#53640]
flutter: The ownership chain for the affected widget is:
flutter: "_OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#53640] ← _Theatre ← Overlay ←
flutter: Directionality ← FlutterEasyLoading ← Consumer2<ThemeModel, LocaleModel> ←
flutter: _DefaultInheritedProviderScope ← ChangeNotifierProvider ← _NestedHook
flutter: ← _DefaultInheritedProviderScope ← ⋯"
flutter: Typically, the MediaQuery widget is introduced by the MaterialApp or WidgetsApp widget at the top of
flutter: your application widget tree.
flutter:
flutter: The relevant error-causing widget was:
flutter: Overlay
flutter: file:///Users/benmo/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_easyloading-1.1.1/lib/src/widgets/loading.dart:35:14
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 debugCheckHasMediaQuery. (package:flutter/src/widgets/debug.dart:219:7)
flutter: #1 debugCheckHasMediaQuery (package:flutter/src/widgets/debug.dart:231:4)
flutter: #2 _CupertinoTextSelectionControls.buildToolbar (package:flutter/src/cupertino/text_selection.dart:307:12)
flutter: #3 TextSelectionOverlay._buildToolbar (package:flutter/src/widgets/text_selection.dart:556:34)
flutter: #4 _OverlayEntryWidgetState.build (package:flutter/src/widgets/overlay.dart:177:27)
flutter: #5 StatefulElement.build (package:flutter/src/widgets/framework.dart:4604:28)
flutter: #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4492:15)
flutter: #7 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4660:11)
flutter: #8 Element.rebuild (package:flutter/src/widgets/framework.dart:4216:5)
flutter: #9 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4475:5)
flutter: #10 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4651:11)
flutter: #11 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4470:5)
flutter: #12 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3444:14)
flutter: #13 Element.updateChild (package:flutter/src/widgets/framework.dart:3212:18)
flutter: #14 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5510:32)
flutter: #15 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:5881:17)
flutter: #16 Element.updateChild (package:flutter/src/widgets/framework.dart:3199:15)
flutter: #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4512:16)
flutter: #18 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4660:11)
flutter: #19 Element.rebuild (package:flutter/src/widgets/framework.dart:4216:5)
flutter: #20 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2617:33)
flutter: #21 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:883:20)
flutter: #22 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:283:5)
flutter: #23 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1109:15)
flutter: #24 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1048:9)
flutter: #25 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:964:5)
flutter: #29 _invoke (dart:ui/hooks.dart:260:10)
flutter: #30 _drawFrame (dart:ui/hooks.dart:218:3)
flutter: (elided 3 frames from dart:async)
flutter:
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

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

1 participant