OLD | NEW |
1 library stocksapp; | 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 |
| 3 // found in the LICENSE file. |
2 | 4 |
3 import '../data/stocks.dart'; | |
4 import 'dart:math'; | |
5 import 'package:sky/framework/animation/scroll_behavior.dart'; | |
6 import 'package:sky/framework/components/action_bar.dart'; | 5 import 'package:sky/framework/components/action_bar.dart'; |
7 import 'package:sky/framework/components/drawer.dart'; | 6 import 'package:sky/framework/components/drawer.dart'; |
8 import 'package:sky/framework/components/drawer_header.dart'; | 7 import 'package:sky/framework/components/drawer_header.dart'; |
9 import 'package:sky/framework/components/fixed_height_scrollable.dart'; | |
10 import 'package:sky/framework/components/floating_action_button.dart'; | 8 import 'package:sky/framework/components/floating_action_button.dart'; |
11 import 'package:sky/framework/components/icon.dart'; | 9 import 'package:sky/framework/components/icon.dart'; |
12 import 'package:sky/framework/components/input.dart'; | 10 import 'package:sky/framework/components/input.dart'; |
13 import 'package:sky/framework/components/material.dart'; | |
14 import 'package:sky/framework/components/menu_divider.dart'; | 11 import 'package:sky/framework/components/menu_divider.dart'; |
15 import 'package:sky/framework/components/menu_item.dart'; | 12 import 'package:sky/framework/components/menu_item.dart'; |
16 import 'package:sky/framework/fn.dart'; | 13 import 'package:sky/framework/fn.dart'; |
17 import 'package:sky/framework/theme/typography.dart' as typography; | 14 import 'package:sky/framework/theme/typography.dart' as typography; |
18 | 15 import 'stock_data.dart'; |
19 part 'stockarrow.dart'; | 16 import 'stock_list.dart'; |
20 part 'stocklist.dart'; | |
21 part 'stockrow.dart'; | |
22 | 17 |
23 class StocksApp extends App { | 18 class StocksApp extends App { |
24 | 19 |
25 DrawerAnimation _drawerAnimation = new DrawerAnimation(); | 20 DrawerAnimation _drawerAnimation = new DrawerAnimation(); |
26 | 21 |
27 static Style _style = new Style(''' | 22 static Style _style = new Style(''' |
28 display: flex; | 23 display: flex; |
29 flex-direction: column; | 24 flex-direction: column; |
30 height: -webkit-fill-available; | 25 height: -webkit-fill-available; |
31 ${typography.typeface}; | 26 ${typography.typeface}; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 key: 'Content', | 131 key: 'Content', |
137 style: _style, | 132 style: _style, |
138 children: [toolbar, list] | 133 children: [toolbar, list] |
139 ), | 134 ), |
140 fab, | 135 fab, |
141 drawer, | 136 drawer, |
142 ] | 137 ] |
143 ); | 138 ); |
144 } | 139 } |
145 } | 140 } |
OLD | NEW |