| Index: sky/examples/raw/shadowed_box.dart
|
| diff --git a/sky/examples/raw/shadowed_box.dart b/sky/examples/raw/shadowed_box.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..378c8c4b7f7c17f37efef8e9d4713b5a58c6d1aa
|
| --- /dev/null
|
| +++ b/sky/examples/raw/shadowed_box.dart
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +import 'dart:sky';
|
| +import 'package:sky/framework/app.dart';
|
| +import 'package:sky/framework/rendering/render_box.dart';
|
| +import 'package:sky/framework/rendering/render_flex.dart';
|
| +
|
| +AppView app;
|
| +
|
| +void main() {
|
| + var shadow = const BoxShadow(
|
| + color:const Color(0xFFEEEEEE), offset:const Size(5.0, 5.0));
|
| + var coloredBox = new RenderDecoratedBox(
|
| + decoration: new BoxDecoration(backgroundColor: 0xFFFFFF00)
|
| + );
|
| + var shadowBox = new RenderShadowedBox(shadow: shadow, child: coloredBox);
|
| + var paddingBox = new RenderPadding(const EdgeDims(10.0, 10.0, 10.0, 10.0),
|
| + shadowBox);
|
| + RenderBox root = new RenderDecoratedBox(
|
| + decoration: new BoxDecoration(backgroundColor: 0xFFFFFFFF),
|
| + child: paddingBox
|
| + );
|
| +
|
| + app = new AppView(root);
|
| +}
|
|
|