OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 import 'dart:sky'; |
| 6 import 'package:sky/framework/app.dart'; |
| 7 import 'package:sky/framework/rendering/box.dart'; |
| 8 import 'package:sky/framework/rendering/flex.dart'; |
| 9 |
| 10 AppView app; |
| 11 |
| 12 void main() { |
| 13 var coloredBox = new RenderDecoratedBox( |
| 14 decoration: new BoxDecoration(backgroundColor: 0xFFFFFF00) |
| 15 ); |
| 16 var shadow = const BoxShadow( |
| 17 color: const Color(0xFFEEEEEE), offset: const Size(5.0, 5.0)); |
| 18 var shadowBox = new RenderShadowedBox(shadow: shadow, child: coloredBox); |
| 19 var paddedBox = new RenderPadding(padding: const EdgeDims.all(30.0), |
| 20 child: shadowBox); |
| 21 app = new AppView(paddedBox); |
| 22 } |
OLD | NEW |