Loading topic
StatelessWidget and StatefulWidget. It looks at what a widget is, and what it is not. Most Flutter performance and state bugs come from misreading that.4 min readStatefulWidget with initState and dispose. It covers the stages an element goes through and how they map onto State callbacks.4 min readTheme.of(context) or Navigator.of(context) without asking how it works. Here you will see what the context argument is and why that explains several common errors.4 min readWidget.canUpdate, and how a StatefulElement owns its State. It covers how keys change which element a widget is matched with, and therefore which State it gets.4 min readStatefulWidget and State are declared, and that a widget is an immutable description (see the earlier chapters on widgets and elements). Here you will see where the State object is stored, when Flutter creates and discards it, and why `bui4 min readRenderObjectWidget is the kind of widget that has a render object. Here we look at the third tree: what a render object stores and4 min readsetState call from your code to the next frame. The call does not rebuild anything itself. It only records that something needs rebuilding.4 min readsetState code and know what a RenderBox is. Here we follow the work Flutter does between "something became dirty" and "pixels reach the screen".4 min readRow, Column, Padding, and Center. Here you will see how the render object tree decides how big each box is and4 min readmarkNeedsPaint schedules a frame. It also assumes you can read a short RenderBox subclass. The chapter covers what the paint phase produces, why Flutter keeps a separate layer tree, and how repaint 4 min readsetState marks an element dirty, and how BuildContext is the element. Here you will see how Flutter delivers data to deep descendants and rebuilds only the widgets t4 min readflutter run. Here you stop reasoning about the trees and read them from a live app. You will use debug dump functions, keys on the terminal, and DevTo5 min readsetState marks an element dirty. Here you will learn how Flutter stops layout and paint work from spreading beyond the part of the tre4 min readsetState marks an element dirty and how Widget.canUpdate decides whether an 4 min readmarkNeedsLayout and markNeedsPaint do in the frame pipeline, and the "constraints down, sizes up, parent sets position" layout rule. You should also be 4 min read