Build: Animated Color Toggle
This screen shows a square that changes its color smoothly when you tap a button. The color change uses withAnimation to animate the transition.
Target UI
--------------------- | | | [ Color Box ] | | | | [Toggle Color] | ---------------------
Display a square box with a background color.
Add a button labeled 'Toggle Color' below the box.
When the button is tapped, the box color changes between red and blue.
Use withAnimation to animate the color change smoothly.