4
Introduction to Widgets
It’s time to finally start playing with Flutter!
In Flutter, everything you see is a widget. Everything your users see and interact with, such as text, a button, an image, a table, or a scrolling list, is a widget. Even the app itself is, in fact, a widget.
Most widgets in Flutter are supposed to perform a single small task. On their own, widgets are classes that perform tasks on the user interface. A Text widget displays text. A Padding widget adds space between widgets. A Scaffold widget provides a structure for a screen.
The real power of widgets comes not from any individual class, but from how you can compose them together to create expressive interfaces. All the widgets on a screen, when combined together, form ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access