OLD | NEW |
---|---|
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:sky'; | 5 import 'dart:sky'; |
6 import 'package:sky/framework/app.dart'; | 6 import 'package:sky/framework/app.dart'; |
7 import 'package:sky/framework/rendering/box.dart'; | 7 import 'package:sky/framework/rendering/box.dart'; |
8 import 'package:sky/framework/rendering/flex.dart'; | 8 import 'package:sky/framework/rendering/flex.dart'; |
9 import 'package:sky/framework/theme2/colors.dart'; | |
9 import 'package:sky/framework/theme2/shadows.dart'; | 10 import 'package:sky/framework/theme2/shadows.dart'; |
10 | 11 |
11 AppView app; | 12 AppView app; |
12 | 13 |
13 void main() { | 14 void main() { |
14 var coloredBox = new RenderDecoratedBox( | 15 var coloredBox = new RenderDecoratedBox( |
15 decoration: new BoxDecoration( | 16 decoration: new BoxDecoration( |
16 backgroundColor: const Color(0xFFFAFAFA), | 17 boxGradient: new RadialBoxGradient( |
abarth-chromium
2015/06/09 21:23:39
s/RadialBoxGradient/RadialGradient/ ?
Matt Perry
2015/06/09 21:38:27
Done.
| |
18 center: Point.origin, radius: 500.0, | |
19 colors: [Yellow[500], Blue[500]]), | |
17 boxShadow: Shadow[3]) | 20 boxShadow: Shadow[3]) |
18 ); | 21 ); |
19 var paddedBox = new RenderPadding( | 22 var paddedBox = new RenderPadding( |
20 padding: const EdgeDims.all(50.0), | 23 padding: const EdgeDims.all(50.0), |
21 child: coloredBox); | 24 child: coloredBox); |
22 app = new AppView(new RenderDecoratedBox( | 25 app = new AppView(new RenderDecoratedBox( |
23 decoration: const BoxDecoration( | 26 decoration: const BoxDecoration( |
24 backgroundColor: const Color(0xFFFFFFFF) | 27 backgroundColor: const Color(0xFFFFFFFF) |
25 ), | 28 ), |
26 child: paddedBox | 29 child: paddedBox |
27 )); | 30 )); |
28 } | 31 } |
OLD | NEW |