-
Notifications
You must be signed in to change notification settings - Fork 29
layoutWithoutSize.useSize not used #42
Copy link
Copy link
Open
Description
The useSize parameter on the BoxyChild.layoutWithoutSize is not used at all.
boxy/boxy/lib/src/boxy/box_child.dart
Lines 103 to 122 in 9d17f98
| /// Like [layout] but does not return the child's size, this is usually more | |
| /// efficient because the boxy doesn't need to be laid out when the child's | |
| /// size changes. | |
| /// | |
| /// If [useSize] is true, this boxy will re-layout when the child changes | |
| /// size regardless. | |
| /// | |
| /// See also: | |
| /// | |
| /// * [layout], which does the same but returns a size. | |
| /// * [layoutRect], which positions the child so that it fits in a rect. | |
| /// * [layoutFit], which positions and scales the child given a [BoxFit]. | |
| void layoutWithoutSize(BoxConstraints constraints, {bool useSize = false}) { | |
| if (_parent.isDryLayout) { | |
| // Do nothing since the delegate doesn't need a size. | |
| return; | |
| } | |
| _checkConstraints(constraints); | |
| render.layout(constraints); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels