Questions
You’ve had your first taste of widgets, so let’s see how much you remember about them. If you find any gaps in your knowledge, then a revisit is worth it at this stage because we will be using widgets throughout the rest of this book:
- Explain the difference between a stateful and a stateless widget.
- How would you trigger a rebuild of a stateful widget?
- What is the purpose of an inherited widget?
- Why do you sometimes need to use the
Key
parameter when constructing a widget? - What are the three places where you can retrieve images for the
Image
widget? - Name three types of buttons that are available as built-in widgets.
- What widgets could you use to create a vertical list of widgets within the center of the screen?
- Can you remember some of the key parameters for constructing a
Scaffold
widget? - What extra functionality does
ListView
have overColumn
?