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

Side by Side Diff: sky/sdk/example/stocks/lib/stock_home.dart

Issue 1235693002: Make back button on stocks app search bar the accent color (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/icon_button.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'package:sky/editing/input.dart'; 5 import 'package:sky/editing/input.dart';
6 import 'package:sky/animation/animation_performance.dart'; 6 import 'package:sky/animation/animation_performance.dart';
7 import 'package:sky/widgets/animated_component.dart'; 7 import 'package:sky/widgets/animated_component.dart';
8 import 'package:sky/widgets/animated_container.dart'; 8 import 'package:sky/widgets/animated_container.dart';
9 import 'package:sky/theme/colors.dart' as colors; 9 import 'package:sky/theme/colors.dart' as colors;
10 import 'package:sky/widgets/basic.dart'; 10 import 'package:sky/widgets/basic.dart';
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 setState(() { selectedTabIndex = tabIndex; } ); 245 setState(() { selectedTabIndex = tabIndex; } );
246 } 246 }
247 ); 247 );
248 } 248 }
249 249
250 // TODO(abarth): Should we factor this into a SearchBar in the framework? 250 // TODO(abarth): Should we factor this into a SearchBar in the framework?
251 Widget buildSearchBar() { 251 Widget buildSearchBar() {
252 return new ToolBar( 252 return new ToolBar(
253 left: new IconButton( 253 left: new IconButton(
254 icon: "navigation/arrow_back", 254 icon: "navigation/arrow_back",
255 onPressed: _handleSearchEnd), 255 color: Theme.of(this).accentColor,
256 onPressed: _handleSearchEnd
257 ),
256 center: new Input( 258 center: new Input(
257 focused: true, 259 focused: true,
258 placeholder: 'Search stocks', 260 placeholder: 'Search stocks',
259 onChanged: _handleSearchQueryChanged), 261 onChanged: _handleSearchQueryChanged
262 ),
260 backgroundColor: Theme.of(this).canvasColor 263 backgroundColor: Theme.of(this).canvasColor
261 ); 264 );
262 } 265 }
263 266
264 void _handleUndo() { 267 void _handleUndo() {
265 setState(() { 268 setState(() {
266 _snackbarTransform = null; 269 _snackbarTransform = null;
267 }); 270 });
268 } 271 }
269 272
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 body: buildTabNavigator(), 321 body: buildTabNavigator(),
319 snackBar: buildSnackBar(), 322 snackBar: buildSnackBar(),
320 floatingActionButton: buildFloatingActionButton(), 323 floatingActionButton: buildFloatingActionButton(),
321 drawer: _drawerShowing ? buildDrawer() : null 324 drawer: _drawerShowing ? buildDrawer() : null
322 ), 325 ),
323 ]; 326 ];
324 addMenuToOverlays(overlays); 327 addMenuToOverlays(overlays);
325 return new Stack(overlays); 328 return new Stack(overlays);
326 } 329 }
327 } 330 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/icon_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698