Loading topic
StatelessWidget, and run a Flutter app. You do not need to know Row, Column, or Stack yet. This chapter explains the rule that decides how those widgets behave.5 min readStatelessWidget with a build method, read Dart named parameters and lists, and run a Flutter app. It also assumes you know the rule from the previous chapter: constraints go down and sizes go up. Here you will use that rule to see what Row and Column do.5 min readStatelessWidget, and know that a parent passes constraints down and a child reports a size back (the previous chapters covered both). It also assumes you have seen Row and Column used in simple cases. Here you will learn the two-axis6 min readStatelessWidget with a build method, and can run a Flutter app. It also assumes you have met the main axis and cross axis of Row and Column in the previous chapter. Here you will learn the two properties that position children along thos5 min readRow or Column are defined. It also assumes you have used mainAxisAlignment and crossAxisAlignment. Here you learn the property that decides how long a Row o5 min readStatelessWidget, and run a Flutter app. It also assumes you know the rule from earlier chapters that constraints go down and sizes go up. Spacing follows from that rule, because both SizedBox and Padding are ordinary widgets that change con4 min readRow or Column uses its main axis and cross axis. It also assumes you know the rule "constraints go down, sizes go up". Here you will see how the free space left over after fixed-size children is divided among flexible ones.5 min readRow and a Column are, how a parent passes constraints down to its children, and how Expanded divides leftover space. You should also be able to read a Flutter console error. The chapter covers the two layout errors you will meet most often, explains why eac6 min readStatelessWidget, read Dart named parameters, and run a Flutter app. It also assumes you know the rule from earlier chapters: a parent passes constraints down, and the child picks a size within them and passes it back up.5 min readStack layers children and sizes itself, and that you understand box constraints (constraints go down, sizes go up). Here you will learn how Positioned pins a child to the edges of a Stack, which combinations of properties are legal, and why the common errors5 min readPositioned places a child. Here you will learn three behaviors of Stack that cause most surprises: how it chooses its own size, how alignment places children, and what clipBehavior does to child5 min readRow, Column, Expanded, SizedBox, Padding, Stack, and Positioned. It also assumes you know the rule that constraints go down and sizes go up. The aim is a repeatable method for building a scre5 min readRow or Column runs out of room: wrap children onto new lines with Wrap, or let the content scroll. It assumes you know how constraints flow down and sizes flow up. It also assumes you can read a RenderFlex overflowed error and know what Expanded does. 6 min read