jogboms/flutter_offline

remove child property

chitgoks opened this issue · 1 comments

widget should at least be inside the builder.

there is no way to get the connectivityresult if you place the main widget in the child property and it needs to check connectivity

The child represents a piece of widget tree that doesn't have a direct dependency on the connectivity result so that it doesn't have to be recomputed every time the result changes. Its a performance optimisation pattern borrowed from flutter as seen in the AnimationBuilder.