-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Change Flexible
's default FlexFit
#7404
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
Conversation
@@ -2229,17 +2229,27 @@ class Column extends Flex { | |||
|
|||
/// A widget that controls how a child of a [Row], [Column], or [Flex] flexes. | |||
/// | |||
/// Using a [Flexible] widget to gives a child of a [Row], [Column], or [Flex] |
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.
s/to//
@@ -2298,9 +2308,13 @@ class Flexible extends ParentDataWidget<Flex> { | |||
/// the available space is divided amoung them according to the [flex] factor. |
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.
s/Using/Use/ or s/to make/makes/.
I'm a little concerned that flipping the default broke no tests, but, LGTM! |
I did a previous CL where I migrated everyone to |
Previously, `Flexible` defaulted to `FlexFit.tight`, which forced the child to expand to fill the available space. Now, `Flexible` defaults to `FlexFit.loose`, which does not force the child to expand to fill the available space. If you want the child to expand to fill the available space, consider using `Expanded` instead. Fixes flutter#5169
558b3f5
to
5353a26
Compare
Sure but that means there was no test verifying that not giving any arguments to Flexible meant it was treated like Expanded. Or vice versa now. :-) |
There were previously, but I guess I removed them when I migrated them to |
Previously,
Flexible
defaulted toFlexFit.tight
, which forced the child toexpand to fill the available space. Now,
Flexible
defaults toFlexFit.loose
, which does not force the child to expand to fill the availablespace.
If you want the child to expand to fill the available space, consider using
Expanded
instead.Fixes #5169