Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: sky/sdk/example/widgets/sector.dart

Issue 1217293003: Remove Material's opinion about background colours, since in fact the background colour varies dram… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/example/stocks/lib/stock_row.dart ('k') | sky/sdk/example/widgets/styled_text.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:math' as math; 5 import 'dart:math' as math;
6 6
7 import 'package:sky/rendering/box.dart'; 7 import 'package:sky/rendering/box.dart';
8 import 'package:sky/rendering/flex.dart'; 8 import 'package:sky/rendering/flex.dart';
9 import 'package:sky/rendering/sky_binding.dart'; 9 import 'package:sky/rendering/sky_binding.dart';
10 import 'package:sky/theme/colors.dart' as colors; 10 import 'package:sky/theme/colors.dart' as colors;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }); 72 });
73 } 73 }
74 74
75 Widget build() { 75 Widget build() {
76 return new Theme( 76 return new Theme(
77 data: new ThemeData.light(primary: colors.Blue, darkToolbar: true), 77 data: new ThemeData.light(primary: colors.Blue, darkToolbar: true),
78 child: new Scaffold( 78 child: new Scaffold(
79 toolbar: new ToolBar( 79 toolbar: new ToolBar(
80 center: new Text('Sector Layout in a Widget Tree')), 80 center: new Text('Sector Layout in a Widget Tree')),
81 body: new Material( 81 body: new Material(
82 color: colors.Grey[50],
82 edge: MaterialEdge.canvas, 83 edge: MaterialEdge.canvas,
83 child: new Flex([ 84 child: new Flex([
84 new Container( 85 new Container(
85 padding: new EdgeDims.symmetric(horizontal: 8.0, vertical: 25.0) , 86 padding: new EdgeDims.symmetric(horizontal: 8.0, vertical: 25.0) ,
86 child: new Flex([ 87 child: new Flex([
87 new RaisedButton( 88 new RaisedButton(
88 enabled: enabledAdd, 89 enabled: enabledAdd,
89 child: new ShrinkWrapWidth( 90 child: new ShrinkWrapWidth(
90 child: new Flex([ 91 child: new Flex([
91 new Container( 92 new Container(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 137 }
137 } 138 }
138 139
139 void main() { 140 void main() {
140 runApp(new SectorApp()); 141 runApp(new SectorApp());
141 SkyBinding.instance.onFrame = () { 142 SkyBinding.instance.onFrame = () {
142 // uncomment this for debugging: 143 // uncomment this for debugging:
143 // SkyBinding.instance.debugDumpRenderTree(); 144 // SkyBinding.instance.debugDumpRenderTree();
144 }; 145 };
145 } 146 }
OLDNEW
« no previous file with comments | « sky/sdk/example/stocks/lib/stock_row.dart ('k') | sky/sdk/example/widgets/styled_text.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698