FlutterBasic7 topics

Flutter widgets

Understand composition, lifecycle and the widgets used to display content and handle actions.

This chapter covers flutter widgets through specific problems and worked examples. Read the lesson descriptions before choosing a starting point. Complete runnable examples are labelled; project configuration and code fragments explain where they belong.

Your lessons

One clear step at a time
  1. 01Compose a screen from small widgetsBuild a reusable stateless profile card with explicit inputs and a clear responsibility.2 min
  2. 02State that lives as long as its widgetUnderstand StatefulWidget, initState and dispose, and pair resource creation with cleanup.2 min
  3. 03Flutter Text, TextStyle and text overflowStyle text through the theme, handle constrained labels and preserve readability when text size increases.2 min
  4. 04Flutter buttons: actions, disabled states and feedbackChoose FilledButton, OutlinedButton and IconButton by action importance, and disable actions while they are unavailable.2 min
  5. 05Flutter images and icons: sizing, loading and failureReserve image space, provide a useful failure state and configure local assets without layout shifts.2 min
  6. 06Flutter Container, Padding and SizedBox: choose the smallest toolSeparate decoration, constraints and spacing instead of reaching for a Container around every widget.2 min
  7. 07BuildContext and keys: location versus identityDistinguish a widget location from its identity, and use stable keys when stateful rows can move.2 min
View the full Flutter course

Find your next idea

Search lessons, code examples and projects.

Type a few words to start exploring.