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

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

Issue 1190793002: Rename UINode to Widget. (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/widgets/navigation.dart ('k') | sky/examples/widgets/spinning_mixed.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/widgets/sector.dart
diff --git a/sky/examples/widgets/sector.dart b/sky/examples/widgets/sector.dart
index af1f1b98d86f14c657826de063132584fe5d0f16..e8beeaf8b15e26cd6170e33704853d3c25858a10 100644
--- a/sky/examples/widgets/sector.dart
+++ b/sky/examples/widgets/sector.dart
@@ -14,7 +14,7 @@ import 'package:sky/widgets/material.dart';
import 'package:sky/widgets/raised_button.dart';
import 'package:sky/widgets/scaffold.dart';
import 'package:sky/widgets/tool_bar.dart';
-import 'package:sky/widgets/ui_node.dart';
+import 'package:sky/widgets/widget.dart';
import '../rendering/sector_layout.dart';
@@ -72,7 +72,7 @@ class SectorApp extends App {
});
}
- UINode build() {
+ Widget build() {
return new Scaffold(
toolbar: new ToolBar(
center: new Text('Sector Layout in a Widget Tree', style: white.title),
@@ -91,7 +91,7 @@ class SectorApp extends App {
new Container(
padding: new EdgeDims.all(4.0),
margin: new EdgeDims.only(right: 10.0),
- child: new UINodeToRenderBoxAdapter(sectorAddIcon)
+ child: new WidgetToRenderBoxAdapter(sectorAddIcon)
),
new Text('ADD SECTOR'),
])
@@ -106,7 +106,7 @@ class SectorApp extends App {
new Container(
padding: new EdgeDims.all(4.0),
margin: new EdgeDims.only(right: 10.0),
- child: new UINodeToRenderBoxAdapter(sectorRemoveIcon)
+ child: new WidgetToRenderBoxAdapter(sectorRemoveIcon)
),
new Text('REMOVE SECTOR'),
])
@@ -124,7 +124,7 @@ class SectorApp extends App {
border: new Border.all(new BorderSide(color: new Color(0xFF000000)))
),
padding: new EdgeDims.all(8.0),
- child: new UINodeToRenderBoxAdapter(sectors)
+ child: new WidgetToRenderBoxAdapter(sectors)
)
),
],
@@ -138,8 +138,8 @@ class SectorApp extends App {
void main() {
App app = new SectorApp();
- UINodeAppView.appView.onFrame = () {
+ WidgetAppView.appView.onFrame = () {
// uncomment this for debugging:
- // UINodeAppView.appView.debugDumpRenderTree();
+ // WidgetAppView.appView.debugDumpRenderTree();
};
}
« no previous file with comments | « sky/examples/widgets/navigation.dart ('k') | sky/examples/widgets/spinning_mixed.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698