What’s Positioned?

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

Check the official documentation for more.

Positioned explained for Android 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:

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 controlling the layout of child widgets in a Stack, allowing for precise positioning and layout control.

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.