Error

The following assertion was thrown while applying parent data.: Incorrect use of ParentDataWidget. The ParentDataWidget Positioned(left: 6.0, top: 168.5) wants to apply ParentData of type StackParentData to a RenderObject, which has been set up to accept ParentData of incompatible type ParentData. 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 CompositedTransformFollower widget. The ownership chain for the RenderObject that received the incompatible parent data was: PhysicalModel ← AnimatedPhysicalModel ← Material ← Positioned ← CompositedTransformFollower ← _EffectiveTickerMode ← TickerMode ← _OverlayEntryWidget-[LabeledGlobalKey<_OverlayEntryWidgetState>#14df4] ← _Theatre ← Overlay-[LabeledGlobalKey#535e5] ← ⋯ When the exception was thrown, this was the stack: #0 RenderObjectElement._updateParentData. (package:flutter/src/widgets/framework.dart:6042:11) #1 RenderObjectElement._updateParentData (package:flutter/src/widgets/framework.dart:6059:6) #2 RenderObjectElement.attachRenderObject (package:flutter/src/widgets/framework.dart:6082:7) #3 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5751:5) #4 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6299:11) ... Normal element mounting (48 frames) #52 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863:16)

Solution

Positioned widget should be wrapped by sliver widget. If you wrap it with other widget, error will be thrown.