Loading topic
Intermediate · Mid: 15 chapters · 27 min read. States assumed prerequisites
Start readingStatelessWidget, the build method, and a working Flutter project. The focus is Flutter’s layout contract: constraints go down, sizes go up, and parents decide where children are placed.StatelessWidget, and can run a Flutter app. This chapter focuses on the two most common Flutter layout widgets: Row and Column.StatelessWidget, and the build method. You should also have a Flutter project that can run on a device or emulator.StatelessWidget, and the build method. This chapter focuses on how Row and Column position their children after sizing them.StatelessWidget, and the build method. It focuses on MainAxisSize, which controls whether a Row or Column takes all available space or only the space its children need.StatelessWidget, and the build method. This chapter focuses on spacing inside a Flutter layout. Spacing changes position and size, but it does not add visible content.StatelessWidget, the build method, and a working Flutter project. You should also understand that a Row lays out children horizontally and a Column lays them out vertically.StatelessWidget and build, and a working Flutter project. The examples focus on diagnosing layout errors rather than changing the visual design.StatelessWidget, and the build method. You also need a Flutter project that can run on a device or emulator.StatelessWidget, the build method, and the Stack widget. A Stack layers children in the same rectangular area. Positioned controls where a child sits inside that area.StatelessWidget, and the build method. This chapter focuses on how Stack chooses its size and places its children.StatelessWidget, and the build method. This chapter combines Row, Column, and Stack into one screen. The main idea is to give each part a clear job:StatelessWidget, the build method, and a working Flutter project. It also assumes you understand that a parent sends constraints to its child and the child returns a size.StatelessWidget, and build, and that you can run a Flutter app. DevTools helps you inspect the layout that Flutter actually produced, rather than guessing from the widget code.