Add Material light and dark themes to Sky widgets

R=ianh@google.com, hixie

Review URL: https://codereview.chromium.org/1204523002.
This commit is contained in:
Collin Jackson
2015-06-22 17:14:27 -07:00
parent e352ec9fc4
commit 3616adbab3
5 changed files with 11 additions and 10 deletions

View File

@@ -77,10 +77,10 @@ class SectorApp extends App {
Widget build() {
return new Theme(
data: new ThemeData(color: colors.Blue, text: typography.white),
data: new ThemeData.light(primary: colors.Blue, darkToolbar: true),
child: new Scaffold(
toolbar: new ToolBar(
center: new Text('Sector Layout in a Widget Tree', style: typography.white.title)),
center: new Text('Sector Layout in a Widget Tree')),
body: new Material(
edge: MaterialEdge.canvas,
child: new Flex([

View File

@@ -108,11 +108,11 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
);
return new Theme(
data: new ThemeData(color: Blue, text: white),
data: new ThemeData.light(primary: Blue, darkToolbar: true),
child: new Scaffold(
body: new Material(child: interactiveBody),
toolbar: new ToolBar(
center: new Text('Hal and Dave', style: white.title)
center: new Text('Hal and Dave')
)
)
);