-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Fix a DataTable
crash and improve some docs
#100959
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
/// by default, this widget will only occupy minimal space. It is | ||
/// recommended to wrap this with an [Expanded] or [Flexible] to control how | ||
/// it flexes. Otherwise, an exception will occur when the the available space | ||
/// is insufficient. |
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.
fixes #100633
@dkwingsmt Hi, would you like take a look at this patch : ) |
(I'm sorry for failing to notice this!) |
/// This widget and the sort indicator (if visible) will wrap with a [Row], | ||
/// by default, this widget will only occupy minimal space. It is |
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.
The first sentence doesn't make much sense. Depending on what you mean, maybe
The [label] is placed within a [Row] along with the sort indicator (if applicable). By default, [label] only occupy minimal space.
/// you can wrap it with an [Expanded]. | ||
/// This widget and the sort indicator (if visible) will wrap with a [Row], | ||
/// by default, this widget will only occupy minimal space. It is | ||
/// recommended to wrap this with an [Expanded] or [Flexible] to control how |
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.
It is recommended to place the label content in an [Expanded] or [Flexible] as [label] to control how the content flexes.
@@ -1050,26 +1051,26 @@ class RenderTable extends RenderBox { | |||
if (rows * columns == 0) { | |||
// TODO(ianh): if columns is zero, this should be zero width | |||
// TODO(ianh): if columns is not zero, this should be based on the column width specifications | |||
_tableWidth = 0.0; |
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 resolve the TODOs?
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 am not quite understood what the todos mean, but I think maybe they can be removed.
As you have said here, this may break something. |
/// sort indicator (if applicable). By default, [label] only occupy minimal | ||
/// space. It is recommended to place the label content in an [Expanded] or | ||
/// [Flexible] as [label] to control how the content flexes. Otherwise, | ||
/// an exception will occur when the the available space is insufficient. |
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.
/// an exception will occur when the the available space is insufficient. | |
/// an exception will occur when the available space is insufficient. |
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 except for nit
Fixes #100952
Fixes #100633