Merge pull request #1163 from Hixie/fix-animated-container
Fix crazy assertion.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user