mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
306a364fb5
commit
f07a0c9873
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user