Widgets for Flutters
Flutter widgets are the immutable descriptions of user interface pieces, from a Text or Button to whole screens. Widgets nest into a tree, with layout widgets such as Row, Column and Stack arranging children. Lists, forms and input fields are built the same way, so mastering widgets means mastering how Flutter shows anything.
Stage: Dart and Widgets · Part of the Flutter roadmap · Last reviewed 19 November 2026
What to learn in Widgets
- Tell StatelessWidget and StatefulWidget apart and choose between them
- Compose layouts with Row, Column, Expanded, Stack and Padding
- Build scrolling lists efficiently with ListView.builder
- Create a Form with TextFormField validators and a GlobalKey
- Apply themes so colours and text styles stay consistent
Widgets interview questions
What is the difference between StatelessWidget and StatefulWidget?
A StatelessWidget describes UI that depends only on its constructor arguments and never changes by itself. A StatefulWidget has an associated State object that persists across rebuilds and can call setState to trigger a new build when internal data changes.
Why use ListView.builder instead of a plain ListView?
ListView.builder creates children lazily, building only the items near the visible area as the user scrolls. A plain ListView with a children list builds all items upfront, which wastes memory and time on long lists.
Where Widgets fits in the Flutter roadmap
Widgets belongs to the Dart and Widgets stage (beginner level), which takes about 18 hours. The basics.
Other units in this stage
Back to the full Flutter roadmap