Merge pull request #747 from collinjackson/fitness_loading

Don’t flash a message while fitness data is loading
This commit is contained in:
Collin Jackson
2015-08-21 16:21:05 -07:00
3 changed files with 11 additions and 5 deletions

View File

@@ -425,10 +425,14 @@ abstract class TagNode extends Widget {
void _sync(Widget old, dynamic slot) {
Widget oldChild = old == null ? null : (old as TagNode).child;
child = syncChild(child, oldChild, slot);
assert(child.parent == this);
assert(child.renderObject != null);
_renderObject = child.renderObject;
assert(_renderObject == renderObject); // in case a subclass reintroduces it
if (child != null) {
assert(child.parent == this);
assert(child.renderObject != null);
_renderObject = child.renderObject;
assert(_renderObject == renderObject); // in case a subclass reintroduces it
} else {
_renderObject = null;
}
}
void updateSlot(dynamic newSlot) {