Prevent the fitness app from asserting when there’s no data yet

This commit is contained in:
Collin Jackson 2015-08-24 14:23:26 -07:00
parent a6d111deb8
commit 9bc23d722e

View File

@ -56,7 +56,7 @@ class Material extends Component {
boxShadow: level == 0 ? null : shadows[level],
shape: type == MaterialType.circle ? Shape.circle : Shape.rectangle
),
child: new DefaultTextStyle(
child: child == null ? null : new DefaultTextStyle(
style: Theme.of(this).text.body1,
child: child
)