我使用Flutter 1.17.0 。 我已经测试了所有应用程序,并且一切都很好,但是一件事情却不好 当我双击TextFormField时,将文本粘贴到TextFormField。 我收到错误消息:
。[38; 5;248m════════小部件库捕获到异常 ═══════════════════════════════════�[39; 49m�[38; 5; 244m 断言被抛出 _OverlayEntryWidget- [LabeledGlobalKey <_OverlayEntryWidgetState>#8f5d7](脏, 状态:_OverlayEntryWidgetState#f2029):[[39; 49m没有MediaQuery小部件 找到。
。[38; 5; 244m_OverlayEntryWidget小部件需要MediaQuery小部件 祖先。[39; 49m [[38; 5; 244m MediaQuery的祖先是: _OverlayEntryWidget- [LabeledGlobalKey <_OverlayEntryWidgetState>#8f5d7]。[39; 49m �[38; 5; 244mdirty。[39; 49m�[38; 5; 244m状态: _OverlayEntryWidgetState#f2029。[39; 49m [[38; 5; 244m] “ _OverlayEntryWidget- [LabeledGlobalKey <_OverlayEntryWidgetState>#8f5d7]←_剧院←重叠←方向性←FlutterEasyLoading← EasyLocalizationProvider←ScopedModelDescendant←_InheritedModel← AnimatedBuilder←ScopedModel←⋯“。[39; 49m
。[38; 5; 248m通常,MediaQuery小部件由 应用程序小部件顶部的MaterialApp或WidgetsApp小部件 树。。[39; 49m
。[38; 5; 244m相关的引起错误的小部件为。''[39; 49m [38; 5; 248mFlutterEasyLoading。[39; 49m。[38; 5; 244m 被抛出,这是堆栈。[39; 49m [[38; 5; 244m#0 debugCheckHasMediaQuery .. [39; 49m [[38; 5; 244m#1 debugCheckHasMediaQuery。[39; 49m [[38; 5; 244m#2 _MaterialTextSelectionControls.buildToolbar。[39; 49m [[38; 5; 244m#3 TextSelectionOverlay._buildToolbar。[39; 49m [[38; 5; 244m#4 _OverlayEntryWidgetState.build。[39; 49m [[38; 5; 244m ...] [39; 49m [[38; 5;248m════════════════════ ══════════════════════════════════════════════════ ══════════�[39; 49m