Commit 9bc23d72 authored by Collin Jackson's avatar Collin Jackson

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

parent a6d111de
......@@ -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
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment