Ian Hickson
Ian Hickson
The parent will create a new `WeatherReport` each frame, which will mean a new `WeatherReport` will have its `build` method called each frame, so you will have a new `WeatherService`...
So how does the second `WeatherReport` instance get access to the `weather` subscription?
What if it has different properties? e.g. `WeatherReport(zip: '94040')` vs `WeatherReport(zip: '94043')`
Best way to figure out what it's doing is to step through it in a debugger, or read the source. It's all open source. :-)
What problem are we trying to solve here? It's not clear to me that the above is any better than: ```dart class WeatherReport extends StatefulWidget { State createState() => _WeatherReportState();...
There's a couple of problems with StateInsidefulWidget, also: * They can't be const. * They can only be inserted in one place in the tree at a time (it's common...
Stateful _widgets_ being const is very common and very useful. The state itself is not in the widget class. Widgets have three parts: 1. the configuration, which you can think...
> The question here is: how can Flutter know that the parent changed the configuration of the child widget? https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/framework.dart#L3343 If the configuration hasn't changed (i.e. the new configuration is...
FWIW, this is forcing Flutter to have a breaking API change.
According to our Q1 survey, about 40% of our users think removing semicolons is worth the cost of a breaking change, 41% if there was a way to do it...