Closed Abdullahfoysal closed 3 years ago
thanks
This feature will be implemented in the v1.1.0 update coming in the next few days!
This feature is throwing error when implemented as shown in the comment above:
I/flutter ( 8082): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter ( 8082): The following assertion was thrown while applying parent data.:
I/flutter ( 8082): Incorrect use of ParentDataWidget.
I/flutter ( 8082): The ParentDataWidget Expanded(flex: 1) wants to apply ParentData of type FlexParentData to a
I/flutter ( 8082): RenderObject, which has been set up to accept ParentData of incompatible type ParentData.
I/flutter ( 8082): Usually, this means that the Expanded widget has the wrong ancestor RenderObjectWidget. Typically,
I/flutter ( 8082): Expanded widgets are placed directly inside Flex widgets.
I/flutter ( 8082): The offending Expanded is currently placed inside a ClipRect widget.
I/flutter ( 8082): The ownership chain for the RenderObject that received the incompatible parent data was:
I/flutter ( 8082): Align ← Expanded ← ClipRect ← Column ← AnimatedBuilder ← ExpandChild ← Column ← Padding ←
I/flutter ( 8082): Semantics ← DefaultTextStyle ← ⋯
Any idea on how to solve it @Abdullahfoysal ?
Closed due to inactivity.
Do you mean something like this?
This code has been extracted from the 'ExpandChild' widget, and wrapped the child widget with an Expanded widget.