Prevent the fitness app from asserting when there’s no data yet
This commit is contained in:
parent
a6d111deb8
commit
9bc23d722e
@ -56,7 +56,7 @@ class Material extends Component {
|
|||||||
boxShadow: level == 0 ? null : shadows[level],
|
boxShadow: level == 0 ? null : shadows[level],
|
||||||
shape: type == MaterialType.circle ? Shape.circle : Shape.rectangle
|
shape: type == MaterialType.circle ? Shape.circle : Shape.rectangle
|
||||||
),
|
),
|
||||||
child: new DefaultTextStyle(
|
child: child == null ? null : new DefaultTextStyle(
|
||||||
style: Theme.of(this).text.body1,
|
style: Theme.of(this).text.body1,
|
||||||
child: child
|
child: child
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user