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

Unified Diff: sky/examples/stocks/lib/stock_app.dart

Issue 1133353008: [Effen] Rename Action Bar to Tool Bar. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks/lib/stock_app.dart
diff --git a/sky/examples/stocks/lib/stock_app.dart b/sky/examples/stocks/lib/stock_app.dart
index 3b6ad62e8f5434ffdf15be0696865ab550e2bfe1..fa9f99a77d257e7c0bf7f743c2617271718169ae 100644
--- a/sky/examples/stocks/lib/stock_app.dart
+++ b/sky/examples/stocks/lib/stock_app.dart
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import 'package:sky/framework/components/action_bar.dart';
+import 'package:sky/framework/components/tool_bar.dart';
import 'package:sky/framework/components/drawer.dart';
import 'package:sky/framework/components/drawer_header.dart';
import 'package:sky/framework/components/floating_action_button.dart';
@@ -31,7 +31,7 @@ enum StockMode { Optimistic, Pessimistic }
class StocksApp extends App {
- static final Style _actionBarStyle = new Style('''
+ static final Style _toolBarStyle = new Style('''
background-color: ${Purple[500]};''');
static final Style _searchBarStyle = new Style('''
@@ -163,9 +163,9 @@ class StocksApp extends App {
);
}
- UINode buildActionBar() {
+ UINode buildToolBar() {
return new StyleNode(
- new ActionBar(
+ new ToolBar(
left: new IconButton(
icon: 'navigation/menu_white',
onGestureTap: _drawerController.toggle),
@@ -180,13 +180,13 @@ class StocksApp extends App {
icon: 'navigation/more_vert_white',
onGestureTap: _handleMenuShow)
]),
- _actionBarStyle);
+ _toolBarStyle);
}
// TODO(abarth): Should we factor this into a SearchBar in the framework?
UINode buildSearchBar() {
return new StyleNode(
- new ActionBar(
+ new ToolBar(
left: new IconButton(
icon: 'navigation/arrow_back_grey600',
onGestureTap: _handleSearchEnd),
@@ -214,7 +214,7 @@ class StocksApp extends App {
addMenuToOverlays(overlays);
return new Scaffold(
- header: _isSearching ? buildSearchBar() : buildActionBar(),
+ header: _isSearching ? buildSearchBar() : buildToolBar(),
content: new Stocklist(stocks: _stocks, query: _searchQuery),
fab: new FloatingActionButton(
content: new Icon(type: 'content/add_white', size: 24), level: 3),
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698