Stack
Last updated
Last updated
The Stack widget in Flutter arranges its children on top of each other, similar to stacking books.
You have the flexibility to rearrange this stack in any desired order.
To add the Stack widget in your project:
Simply click on Add Widget and then click on Stack Widget to it in your project.
Top Start: In the "Top Start" property, the child element is positioned at the top left corner of its parent widget
Top End: In the "Top End" property, the child element is positioned at the top right corner of its parent widget
Center Start: In the "Center Start" property, the child element is positioned at the center in left side of its parent widget
Center: In the "Center" property, the child element is positioned at the center of its parent widget
Center End: In the "Center End" property, the child element is positioned at the center in right corner of its parent widget
Bottom Start: In the "Bottom Start" property, the child element's position is at the bottom left corner of its parent widget.
Bottom Center: In the "Bottom Center" property, the child element's position is at the bottom center of its parent widget.
Bottom End: In the "Bottom End" property, the child element's position is at the bottom right corner of its parent widget.
Expand:
Loose:
Pass Through: