Build: Stack Positioned Demo
This screen shows how to use Stack and Positioned widgets to place items on top of each other with exact positions.
Target UI
┌───────────────────────────────┐ │ Stack Demo │ │ ┌───────────────────────────┐ │ │ │ │ │ │ │ [Blue Box] │ │ │ │ ┌───────────────┐ │ │ │ │ │ │ │ │ │ │ │ Red Circle │ │ │ │ │ │ Positioned │ │ │ │ │ └───────────────┘ │ │ │ │ │ │ │ └───────────────────────────┘ │ │ │ └───────────────────────────────┘
Use a Stack widget to layer two widgets.
Add a blue Container as the base box with fixed width and height.
Add a red circular Container positioned at the top right corner inside the blue box using Positioned.
The red circle should partially overlap the blue box.
Use proper sizes and colors to clearly see the layering.