What is the GridView widget?
Why Interviewers Ask This
This question tests conceptual clarity. Interviewers want to hear a precise, confident definition before moving to more complex Flutter topics. It also reveals how well you can explain technical ideas to non-experts.
Answer
GridView displays a 2D scrollable grid of widgets. GridView.count creates a grid with a fixed number of columns, while GridView.extent creates one where each tile has a maximum width. For dynamic data, GridView.builder() lazily builds grid items on demand, making it memory-efficient for large datasets. The crossAxisCount and childAspectRatio properties control the grid layout.
Common Mistake
Many candidates answer correctly but can't explain the 'why'. Always be prepared to justify your answer with a concrete example or use case from your Flutter experience.