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 superclasses and are key to how you manage the UI of your app.
Next, we will take a closer look at the built-in widgets that come as part of the Flutter framework and cover most of your UI needs. It is useful to be aware of what is...