Fix crazy assertion.

Not sure what I was doing when I wrote this assertion, but I'm pretty
sure it's wrong. I'm guessing the change here is what I actually meant
to write.
This commit is contained in:
Ian Hickson 2016-01-09 13:30:51 -08:00
parent 306a364fb5
commit f07a0c9873

View File

@ -79,8 +79,10 @@ class AnimatedContainer extends StatefulComponent {
}) : super(key: key) {
assert(margin == null || margin.isNonNegative);
assert(padding == null || padding.isNonNegative);
assert(decoration == null || decoration.debugAssertValid());
assert(foregroundDecoration == null || foregroundDecoration.debugAssertValid());
assert(curve != null);
assert(duration != null || decoration.debugAssertValid());
assert(duration != null);
}
final Widget child;