mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
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
This commit is contained in:
parent
baa62abc67
commit
f2bc5caa07
@ -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
|
||||
),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user