mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

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
21 lines
407 B
Dart
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;
|
|
}
|
|
}
|