Chapter 5: Widgets – Building Layouts in Flutter
In this chapter, you will learn what a widget is and the three different types of widgets: stateless, stateful, and inherited. You will explore some of the most common widgets in Flutter, view them in action, and learn how to add them to your application. Additionally, you will gain an understanding of how layout widgets can help you to structure your user interface (UI).
Widgets are classes and objects within the Dart language. Therefore, this chapter will use a lot of the knowledge that you gained in Chapter 4, Dart Classes and Constructs, regarding Dart classes and enums. Armed with this knowledge, we will explore Stateful and Stateless widgets, which are classes that inherit from specific ...
Get Flutter for Beginners - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.