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

Exception caught by widgets library #3

Open
Yakumons opened this issue Apr 11, 2024 · 0 comments
Open

Exception caught by widgets library #3

Yakumons opened this issue Apr 11, 2024 · 0 comments

Comments

@Yakumons
Copy link

Yakumons commented Apr 11, 2024

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:
SizedBox ← Expanded ← Padding ← DecoratedBox ← ConstrainedBox ← Container ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← ⋯

Whenever i run the app on the emulator i just get white screen and that

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