-
-
Notifications
You must be signed in to change notification settings - Fork 919
Use intrinsic with for <table> columns with otherwise undefined size #519
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
Use intrinsic with for <table> columns with otherwise undefined size #519
Conversation
This fixes Sub6Resources#491 specifically, and also updates flutter_layout_grid to a much improved version
: IntrinsicContentTrackSize(); | ||
} else if (colWidth != null) { | ||
final fixedPxSize = double.tryParse(colWidth); | ||
return fixedPxSize != null | ||
? FixedTrackSize(fixedPxSize) | ||
: FlexibleTrackSize(1); | ||
: IntrinsicContentTrackSize(); | ||
} else { | ||
return FlexibleTrackSize(1); | ||
return IntrinsicContentTrackSize(); |
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.
Does this new flutter_layout_grid parameter correctly size when images are in a table? Curious to know whether this fixes that one issue we were having with small images inside tables.
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.
Yes it does!
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.
Awesome! I'm going to remove my comment on your image render proposal since this takes care of that.
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.
LGTM! Nice job :)
@ryan-berger could you review this? I can't self-review so I can't merge. |
@erickok Yup, I can, but let me also up your permissions :) |
@erickok Oh, actually, can't up your permissions for this one. That would require ownership I believe? Unless we turn these requirements off.... Maybe a discussion we can have over email |
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.
LGTM
This fixes #491 specifically, and also updates flutter_layout_grid to a much improved version