You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flutter run
════════ Exception caught by Flutter framework ═════════════════════════════════
The following assertion was thrown:
The render object for Stack cannot find ancestor render object to attach to.
The ownership chain for the RenderObject in question was:
Stack ← Directionality ← Builder ← MediaQuery ← KeyboardMediaQuery ← KeyboardRootWidget ← [root]
Try wrapping your widget in a View widget or any other widget that is backed by a RenderTreeRootElement to serve as the root of the render tree.
════════════════════════════════════════════════════════════════════════════════
不使用KeyboardRootWidget包裹的情况下:
flutter run
════════ Exception caught by Flutter framework ═════════════════════════════════
The following assertion was thrown:
The render object for Semantics cannot find ancestor render object to attach to.
The ownership chain for the RenderObject in question was:
Semantics ← _FocusInheritedScope ← Focus ← HeroControllerScope ← ScrollConfiguration ← MaterialApp ← WillPopScope ← NotificationListener ← _GlobalOverlaySupport-[LabeledGlobalKey>#a3d3e overlay_support] ← OverlaySupportTheme ← ⋯
Try wrapping your widget in a View widget or any other widget that is backed by a RenderTreeRootElement to serve as the root of the render tree.
════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered:
Flutter
版本信息:主要的代码:
使用
KeyboardRootWidget
包裹的情况下:flutter run
════════ Exception caught by Flutter framework ═════════════════════════════════ The following assertion was thrown: The render object for Stack cannot find ancestor render object to attach to. The ownership chain for the RenderObject in question was: Stack ← Directionality ← Builder ← MediaQuery ← KeyboardMediaQuery ← KeyboardRootWidget ← [root] Try wrapping your widget in a View widget or any other widget that is backed by a RenderTreeRootElement to serve as the root of the render tree. ════════════════════════════════════════════════════════════════════════════════不使用
KeyboardRootWidget
包裹的情况下:flutter run
════════ Exception caught by Flutter framework ═════════════════════════════════ The following assertion was thrown: The render object for Semantics cannot find ancestor render object to attach to. The ownership chain for the RenderObject in question was: Semantics ← _FocusInheritedScope ← Focus ← HeroControllerScope ← ScrollConfiguration ← MaterialApp ← WillPopScope ← NotificationListener ← _GlobalOverlaySupport-[LabeledGlobalKey>#a3d3e overlay_support] ← OverlaySupportTheme ← ⋯ Try wrapping your widget in a View widget or any other widget that is backed by a RenderTreeRootElement to serve as the root of the render tree. ════════════════════════════════════════════════════════════════════════════════The text was updated successfully, but these errors were encountered: