What is the CircularProgressIndicator widget?
Why Interviewers Ask This
Interviewers use this question to quickly assess whether a candidate has the foundational knowledge required for Flutter development. It reveals whether you understand the building blocks that more complex concepts rely on.
Answer
CircularProgressIndicator shows a spinning circular animation to indicate that the app is working on something. For indeterminate loading (unknown duration), use it without a value property. For determinate progress (known percentage), set value between 0.0 and 1.0. The color property customizes the indicator color. For a horizontal loading bar, use LinearProgressIndicator.
Common Mistake
Rushing to answer is a common mistake. Take two seconds to structure your response: definition → example → trade-off. This structure makes complex Flutter answers easy to follow.