Index: sky/examples/stocks/lib/stock_list.dart |
diff --git a/sky/examples/stocks/lib/stock_list.dart b/sky/examples/stocks/lib/stock_list.dart |
deleted file mode 100644 |
index c0fbe44ee07857c50a187cb050cd1365a07fc175..0000000000000000000000000000000000000000 |
--- a/sky/examples/stocks/lib/stock_list.dart |
+++ /dev/null |
@@ -1,32 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// 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/fixed_height_scrollable.dart'; |
-import 'package:sky/framework/fn.dart'; |
-import 'stock_data.dart'; |
-import 'stock_row.dart'; |
- |
-class Stocklist extends FixedHeightScrollable { |
- String query; |
- List<Stock> stocks; |
- |
- Stocklist({ |
- Object key, |
- this.stocks, |
- this.query |
- }) : super(key: key); |
- |
- List<UINode> buildItems(int start, int count) { |
- var filteredStocks = stocks.where((stock) { |
- return query == null || |
- stock.symbol.contains(new RegExp(query, caseSensitive: false)); |
- }); |
- itemCount = filteredStocks.length; |
- return filteredStocks |
- .skip(start) |
- .take(count) |
- .map((stock) => new StockRow(stock: stock)) |
- .toList(growable: false); |
- } |
-} |