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

pull request to solve issue, issue solved given in description #4

Conversation

muaddibusulll
Copy link
Contributor

pull request to solve issue:
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

@theakhinabraham theakhinabraham merged commit 4794c74 into theakhinabraham:main Aug 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants