Commit f1b01f9a authored by Ian Hickson's avatar Ian Hickson

Merge pull request #746 from Hixie/homogeneous-fixes

Add more asserts to help catch the blackness bug
parents 7dc7f16a d4f3d0a0
......@@ -16,13 +16,14 @@ class HomogeneousViewport extends RenderObjectWidget {
Key key,
this.builder,
this.itemsWrap: false,
this.itemExtent, // required
this.itemExtent, // required, must be non-zero
this.itemCount, // optional, but you cannot shrink-wrap this class or otherwise use its intrinsic dimensions if you don't specify it
this.direction: ScrollDirection.vertical,
this.startOffset: 0.0,
this.overlayPainter
}) : super(key: key) {
assert(itemExtent != null);
assert(itemExtent > 0);
}
final ListBuilder builder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment