flutter_vignettes icon indicating copy to clipboard operation
flutter_vignettes copied to clipboard

(Bug) (dark_ink_transition) Incorrect use of ParentDataWidget.

Open Alvish0407 opened this issue 1 year ago • 0 comments

The following assertion was thrown while applying parent data.:
Incorrect use of ParentDataWidget.
The ParentDataWidget Positioned(left: 0.0, width: 991.0, height: 1032.0) wants to apply ParentData of type StackParentData to a RenderObject, which has been set up to accept ParentData of incompatible type BoxParentData.
Usually, this means that the Positioned widget has the wrong ancestor RenderObjectWidget. Typically, Positioned widgets are placed directly inside Stack widgets.
The offending Positioned is currently placed inside a LayoutBuilder widget.
The ownership chain for the RenderObject that received the incompatible parent data was:
  Stack ← Positioned ← LayoutBuilder ← TransitionContainer ← Stack ← Listener ← _GestureSemantics ← RawGestureDetector ← GestureDetector ← DarkInkDemo ← ⋯

Outcome: Grey screen in release mode

Positioned widget is causing the issue https://github.com/gskinnerTeam/flutter_vignettes/blob/055406a71912d7a7d89420359988963e0b39ed98/vignettes/dark_ink_transition/lib/transition_container.dart#L114-L117

Alvish0407 avatar Oct 11 '24 14:10 Alvish0407