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

Unified Diff: sky/examples/widgets/container.dart

Issue 1218593002: Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: sky/examples/widgets/container.dart
diff --git a/sky/examples/widgets/container.dart b/sky/examples/widgets/container.dart
deleted file mode 100644
index 1b99fe4c291cf98c3170f91ab7776cda50f6702d..0000000000000000000000000000000000000000
--- a/sky/examples/widgets/container.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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 'package:sky/rendering/box.dart';
-import 'package:sky/rendering/flex.dart';
-import 'package:sky/widgets/raised_button.dart';
-import 'package:sky/widgets/basic.dart';
-
-class ContainerApp extends App {
- Widget build() {
- return new Flex([
- new Container(
- padding: new EdgeDims.all(10.0),
- margin: new EdgeDims.all(10.0),
- decoration: new BoxDecoration(backgroundColor: const Color(0xFFCCCCCC)),
- child: new Image(
- src: "https://www.dartlang.org/logos/dart-logo.png",
- size: new Size(300.0, 300.0)
- )
- ),
- new Container(
- decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFF00)),
- padding: new EdgeDims.symmetric(horizontal: 50.0, vertical: 75.0),
- child: new Flex([
- new RaisedButton(
- child: new Text('PRESS ME'),
- onPressed: () => print("Hello World")
- ),
- new RaisedButton(
- child: new Text('DISABLED'),
- onPressed: () => print("Hello World"),
- enabled: false
- )
- ])
- ),
- new Flexible(
- child: new Container(
- decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FFFF))
- )
- ),
- ],
- direction: FlexDirection.vertical,
- justifyContent: FlexJustifyContent.spaceBetween
- );
- }
-}
-
-void main() {
- runApp(new ContainerApp());
-}

Powered by Google App Engine
This is Rietveld 408576698