Build: Responsive Layout Demo
This screen shows a responsive layout that changes based on screen width. On small screens, it stacks items vertically. On larger screens, it arranges items horizontally.
Target UI
Responsive Layout Demo +-------------------------+ | Item 1 | |-------------------------| | Item 2 | |-------------------------| | Item 3 | +-------------------------+ (small screen stacked) +---------------------------------------+ | Item 1 | Item 2 | Item 3 | (large screen horizontal) +---------------------------------------+
Use MediaQuery to detect screen width
If width < 600 pixels, show items stacked vertically
If width >= 600 pixels, show items arranged horizontally
Each item is a colored box with centered text: 'Item 1', 'Item 2', 'Item 3'
Use Flutter widgets only
Make sure layout adapts when screen size changes