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

Unified Diff: sky/examples/stocks2/lib/stock_app.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/raw/navigation.dart ('k') | sky/examples/stocks2/lib/stock_arrow.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks2/lib/stock_app.dart
diff --git a/sky/examples/stocks2/lib/stock_app.dart b/sky/examples/stocks2/lib/stock_app.dart
index 84ac7c08a92f88a4b0fdf1a46d2111c79b67d000..6888a4dec2138eebe9be2beb451e7cca0680dc47 100644
--- a/sky/examples/stocks2/lib/stock_app.dart
+++ b/sky/examples/stocks2/lib/stock_app.dart
@@ -20,7 +20,7 @@ import 'package:sky/widgets/popup_menu.dart';
import 'package:sky/widgets/radio.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 'stock_data.dart';
import 'stock_list.dart';
@@ -151,7 +151,7 @@ class StocksApp extends App {
);
}
- UINode buildToolBar() {
+ Widget buildToolBar() {
return new ToolBar(
left: new IconButton(
icon: 'navigation/menu_white',
@@ -170,7 +170,7 @@ class StocksApp extends App {
}
// TODO(abarth): Should we factor this into a SearchBar in the framework?
- UINode buildSearchBar() {
+ Widget buildSearchBar() {
return new ToolBar(
left: new IconButton(
icon: 'navigation/arrow_back_grey600',
@@ -183,7 +183,7 @@ class StocksApp extends App {
);
}
- void addMenuToOverlays(List<UINode> overlays) {
+ void addMenuToOverlays(List<Widget> overlays) {
if (_menuController == null)
return;
overlays.add(new ModalOverlay(
@@ -195,8 +195,8 @@ class StocksApp extends App {
onDismiss: _handleMenuHide));
}
- UINode build() {
- List<UINode> overlays = [
+ Widget build() {
+ List<Widget> overlays = [
new Scaffold(
toolbar: _isSearching ? buildSearchBar() : buildToolBar(),
body: new Stocklist(stocks: _stocks, query: _searchQuery),
@@ -214,8 +214,8 @@ class StocksApp extends App {
void main() {
print("starting stocks app!");
App app = new StocksApp();
- UINodeAppView.appView.onFrame = () {
+ WidgetAppView.appView.onFrame = () {
// uncomment this for debugging:
- // UINodeAppView.appView.debugDumpRenderTree();
+ // WidgetAppView.appView.debugDumpRenderTree();
};
}
« no previous file with comments | « sky/examples/raw/navigation.dart ('k') | sky/examples/stocks2/lib/stock_arrow.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698