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

Unified Diff: sky/examples/stocks-fn/lib/stock_list.dart

Issue 1005393006: Clean up examples directory (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/stocks-fn/lib/stock_data.dart ('k') | sky/examples/stocks-fn/lib/stock_menu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks-fn/lib/stock_list.dart
diff --git a/sky/examples/stocks-fn/lib/stock_list.dart b/sky/examples/stocks-fn/lib/stock_list.dart
deleted file mode 100644
index 04738ba4d4b9588822b66cc9f50be4520cd658b2..0000000000000000000000000000000000000000
--- a/sky/examples/stocks-fn/lib/stock_list.dart
+++ /dev/null
@@ -1,30 +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/animation/scroll_behavior.dart';
-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, scrollBehavior: new OverscrollBehavior());
-
- List<Node> buildItems(int start, int count) {
- return stocks
- .skip(start)
- .where((stock) => query == null || stock.symbol.contains(
- new RegExp(query, caseSensitive: false)))
- .take(count)
- .map((stock) => new StockRow(stock: stock))
- .toList(growable: false);
- }
-}
« no previous file with comments | « sky/examples/stocks-fn/lib/stock_data.dart ('k') | sky/examples/stocks-fn/lib/stock_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698