rafalbednarczuk / curved_navigation_bar

Animated Curved Navigation Bar in Flutter
BSD 2-Clause "Simplified" License
683 stars 239 forks source link

Incorrect use of ParentDataWidget #139

Closed sxm5220 closed 1 year ago

sxm5220 commented 1 year ago

The ParentDataWidget Positioned 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 Align widget.

The ownership chain for the RenderObject that received the incompatible parent data was: Semantics ← Image ← Positioned ← IconTheme ← Builder ← Align ← SizedBox ← Padding ← ConstrainedBox ← Listener ← ⋯