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:
@@ -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([
|
||||
|
||||
@@ -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')
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user