Created
July 28, 2020 12:16
-
-
Save nailkhasipov/911bd4a05919e4bc91eb5d61faa153b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
════════ Exception caught by widgets library ═══════════════════════════════════ | |
The following assertion was thrown while applying parent data.: | |
Incorrect use of ParentDataWidget. | |
The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a RenderObject, which has been set up to accept ParentData of incompatible type BoxParentData. | |
Usually, this means that the Expanded widget has the wrong ancestor RenderObjectWidget. Typically, Expanded widgets are placed directly inside Flex widgets. | |
The offending Expanded is currently placed inside a Padding widget. | |
The ownership chain for the RenderObject that received the incompatible parent data was: | |
_GestureSemantics ← RawGestureDetector ← GestureDetector ← Expanded ← Padding ← Row ← Padding ← Container ← Column ← MediaQuery ← ⋯ | |
When the exception was thrown, this was the stack | |
#0 RenderObjectElement._updateParentData.<anonymous closure> | |
package:flutter/…/widgets/framework.dart:5645 | |
#1 RenderObjectElement._updateParentData | |
package:flutter/…/widgets/framework.dart:5661 | |
#2 RenderObjectElement.attachRenderObject | |
package:flutter/…/widgets/framework.dart:5682 | |
#3 RenderObjectElement.mount | |
package:flutter/…/widgets/framework.dart:5376 | |
#4 SingleChildRenderObjectElement.mount | |
package:flutter/…/widgets/framework.dart:5829 | |
════════ Exception caught by image resource service ════════════════════════════ | |
Exception: Could not instantiate image codec. | |
════════════════════════════════════════════════════════════════════════════════ | |
... | |
════════════════════════════════════════════════════════════════════════════════ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment