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

Side by Side Diff: sky/examples/raw/shadowed_box.dart

Issue 1146893004: Attempt to write a RenderShadowedBox (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Added blur, moved back to src mode Created 5 years, 6 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
OLDNEW
(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: const Color(0xFFFFFF00))
15 );
16 var shadow = const BoxShadow(
17 color: const Color(0xFFEEEEEE), offset: const Size(5.0, 5.0), blur: 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 }
OLDNEW
« no previous file with comments | « sky/engine/core/painting/DrawLooperLayerInfo.idl ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698