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

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

Issue 1057603006: [Effen] Only skip rows we're showing, when skipping past the rows that we've scrolled beyond in the… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 4ad488ac2d98297af16f654a9fde1c7c1b4f29f2..2e6e5bbf1d9db5e92f85d7b4edcb8dd200bc0f48 100644
--- a/sky/examples/stocks/lib/stock_list.dart
+++ b/sky/examples/stocks/lib/stock_list.dart
@@ -20,9 +20,9 @@ class Stocklist extends FixedHeightScrollable {
List<UINode> buildItems(int start, int count) {
return stocks
- .skip(start)
.where((stock) => query == null || stock.symbol.contains(
new RegExp(query, caseSensitive: false)))
+ .skip(start)
.take(count)
.map((stock) => new StockRow(stock: stock))
.toList(growable: false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698