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

Fix crazy assertion.
This commit is contained in:
Ian Hickson
2016-01-09 14:53:19 -08:00

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;