What’s Positioned?

A widget that controls where a child of a Stack is positioned.

Check the official documentation for more.

Positioned explained for Web Developers

A Positioned widget must be a descendant of a Stack, and the path from the Positioned widget to its enclosing Stack must contain only StatelessWidget or StatefulWidget. If a widget is wrapped in a Positioned, then it is a positioned widget in its Stack. The top, right, bottom, and left properties determine the position of the child within the Stack.

Example Code

Here is an example of how to use Positioned:

const Positioned({Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height, required Widget child})

Positioned Remarks

The Positioned widget is essential for creating complex layouts in Flutter, allowing developers to control the exact placement of widgets within a Stack.

Bootstrap Your app with ShipFlutter

A fully customizable starter kit to seamlessly launch responsive Android, iOS, and Web apps with Flutter powered by Firebase and Vertex AI.