Index: sky/sdk/lib/widgets/material.dart |
diff --git a/sky/sdk/lib/widgets/material.dart b/sky/sdk/lib/widgets/material.dart |
index f178fc2cbb0b87e8ca214437e824f20d3f9190b5..4d7e68e4ca3b2f1f51982a75c7a2740608e6f4e8 100644 |
--- a/sky/sdk/lib/widgets/material.dart |
+++ b/sky/sdk/lib/widgets/material.dart |
@@ -7,6 +7,8 @@ import '../theme/colors.dart'; |
import '../theme/edges.dart'; |
import '../theme/shadows.dart'; |
import 'basic.dart'; |
+import 'default_text_style.dart'; |
+import 'theme.dart'; |
class Material extends Component { |
@@ -30,10 +32,10 @@ class Material extends Component { |
decoration: new BoxDecoration( |
boxShadow: shadows[level], |
borderRadius: edges[edge], |
- backgroundColor: color == null ? Grey[50] : color, |
+ backgroundColor: color == null ? Theme.of(this).backgroundColor : color, |
shape: edge == MaterialEdge.circle ? Shape.circle : Shape.rectangle |
), |
- child: child |
+ child: new DefaultTextStyle(style: Theme.of(this).text.body1, child: child) |
); |
} |