-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Enhance SizeTransition docs #19721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance SizeTransition docs #19721
Conversation
3231546 to
5d32e7b
Compare
| /// | ||
| /// For a widget that automatically animates between the sizes of two children, | ||
| /// fading between them, see [AnimatedCrossFade]. | ||
| /// `SizeTransition` acts as a clip region that animates either its width or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]
| /// | ||
| /// For a widget that automatically animates between the sizes of two children, | ||
| /// fading between them, see [AnimatedCrossFade]. | ||
| /// `SizeTransition` acts as a clip region that animates either its width or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clip region?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clip rect, I mean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i guess @liyuqian will change that when he does his patch to remove clipping everywhere
| /// For a widget that automatically animates between the sizes of two children, | ||
| /// fading between them, see [AnimatedCrossFade]. | ||
| /// `SizeTransition` acts as a clip region that animates either its width or | ||
| /// height, depending upon the value of [axis]. The alignment of the child along |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or its height
| /// given, so be sure to put it in a context where it can change size. For | ||
| /// instance, if you place it into a [Container] with a fixed size, then the | ||
| /// `SizeTransition` will not be able to change size, and will appear to do | ||
| /// nothing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[] instead of `` throughout
…r into size_transition_docs
Updated documentation of SizeTransition, since I found it less than intuitive.
I added some constructor asserts to make the (existing) contract more clear.