Commit 71c2ccbf authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1163 from Hixie/fix-animated-container

Fix crazy assertion.
parents 306a364f f07a0c98
......@@ -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;
......
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