flutter/examples/stocks-fn/stocklist.dart
Rafael Weinstein 202f99d71d Initial commit of Effen reactive framework experiment for Sky
This is just a proof of concept. If we like this direction, it will move out of the examples directory (likely re-written) and be committed in smaller pieces with unit tests and formal reviews.

TBR=abarth
BUG=

Review URL: https://codereview.chromium.org/971183002
2015-03-02 20:55:02 -08:00

21 lines
407 B
Dart

part of stocksapp;
class Stocklist extends FixedHeightScrollable {
List<Stock> stocks;
Stocklist({
Object key,
this.stocks
}) : super(key: key, itemHeight: 80.0, height: 800.0, minOffset: 0.0);
List<Node> renderItems(int start, int count) {
var items = [];
for (var i = 0; i < count; i++) {
items.add(new StockRow(stock: stocks[start + i]));
}
return items;
}
}