Ian Hickson 867bbcc9bd Provide a safe time to update a WidgetToRenderBoxAdapter
If you change the RenderObject tree between frames, you'll assert if
you subsequently hit test. So e.g. if you get two button presses back
to back, and you mutate the tree synchronously in response to the
first one, the second will assert.

This adds an onBuild callback to WidgetToRenderBoxAdapter to make it
easier to do the updates at the right time, i.e., during widget build.
It'll be called whenever you rebuild the WidgetToRenderBoxAdapter
itself, so all you have to do to use it is call setState() on whoever
is building the WidgetToRenderBoxAdapter.
2016-01-11 23:14:37 -08:00
..
2015-12-02 14:20:56 -08:00
2015-11-30 15:24:36 -08:00
2016-01-11 18:53:32 -08:00
2015-10-23 18:13:25 -07:00

Small examples of the Flutter widget framework

To run these, open a terminal in this directory and use the following command:

flutter start --checked -t foo.dart

...where foo.dart is the file you want to run.