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

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

Issue 1177243002: Refactor fn2.dart, since it breached our 1000-line threshold. (Closed) Base URL: https://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
« no previous file with comments | « sky/examples/stocks2/lib/stock_row.dart ('k') | sky/examples/widgets/hello_widgets.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/widgets/container.dart
diff --git a/sky/examples/fn2/container.dart b/sky/examples/widgets/container.dart
similarity index 91%
rename from sky/examples/fn2/container.dart
rename to sky/examples/widgets/container.dart
index f1eec6bbea4558b79b488c8fed36e20411c37a09..437784078ade73ed332a35772e5d65e328441091 100644
--- a/sky/examples/fn2/container.dart
+++ b/sky/examples/widgets/container.dart
@@ -3,8 +3,11 @@
// found in the LICENSE file.
import 'dart:sky' as sky;
-import 'package:sky/framework/fn2.dart';
+
import 'package:sky/framework/rendering/box.dart';
+import 'package:sky/framework/widgets/ui_node.dart';
+import 'package:sky/framework/widgets/wrappers.dart';
+
import '../lib/solid_color_box.dart';
class Rectangle extends RenderObjectWrapper {
@@ -29,7 +32,7 @@ class ContainerApp extends App {
child: new Block([
new Container(
decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)),
- height: 20.0,
+ height: 20.0
),
new Image(src: "https://www.dartlang.org/logos/dart-logo.png",
size: new sky.Size(300.0, 300.0),
« no previous file with comments | « sky/examples/stocks2/lib/stock_row.dart ('k') | sky/examples/widgets/hello_widgets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698