From f2bc5caa074febf9bc879b7d0a6151b73e59ab7f Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 5 Jun 2015 10:07:51 -0700 Subject: [PATCH] Add the floating action button to stocks2 The + isn't quite centered properly, but the button is a circle in the right place. R=eseidel@chromium.org, ianh@google.com Review URL: https://codereview.chromium.org/1156383004 --- examples/stocks2/lib/stock_app.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/stocks2/lib/stock_app.dart b/examples/stocks2/lib/stock_app.dart index 26f44a094f..12d8ad8088 100644 --- a/examples/stocks2/lib/stock_app.dart +++ b/examples/stocks2/lib/stock_app.dart @@ -5,8 +5,8 @@ import 'package:sky/framework/components2/tool_bar.dart'; import 'package:sky/framework/components2/drawer.dart'; // import 'package:sky/framework/components2/drawer_header.dart'; -// import 'package:sky/framework/components2/floating_action_button.dart'; -// import 'package:sky/framework/components2/icon.dart'; +import 'package:sky/framework/components2/floating_action_button.dart'; +import 'package:sky/framework/components2/icon.dart'; import 'package:sky/framework/components2/icon_button.dart'; import 'package:sky/framework/components2/menu_divider.dart'; import 'package:sky/framework/components2/menu_item.dart'; @@ -203,9 +203,9 @@ class StocksApp extends App { new Scaffold( toolbar: _isSearching ? buildSearchBar() : buildToolBar(), body: new Stocklist(stocks: _stocks, query: _searchQuery), - // floatingActionButton: new FloatingActionButton( - // content: new Icon(type: 'content/add_white', size: 24), - // level: 3), + floatingActionButton: new FloatingActionButton( + content: new Icon(type: 'content/add_white', size: 24), + level: 3), drawer: _drawerShowing ? buildDrawer() : null ), ];