Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
ad883695
Unverified
Commit
ad883695
authored
Dec 07, 2020
by
Michael Goderbauer
Committed by
GitHub
Dec 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc fixes for dry layout (#71868)
parent
32ab5402
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
box.dart
packages/flutter/lib/src/rendering/box.dart
+4
-3
object.dart
packages/flutter/lib/src/rendering/object.dart
+2
-1
No files found.
packages/flutter/lib/src/rendering/box.dart
View file @
ad883695
...
@@ -1824,9 +1824,10 @@ abstract class RenderBox extends RenderObject {
...
@@ -1824,9 +1824,10 @@ abstract class RenderBox extends RenderObject {
/// Computes the value returned by [getDryLayout]. Do not call this
/// Computes the value returned by [getDryLayout]. Do not call this
/// function directly, instead, call [getDryLayout].
/// function directly, instead, call [getDryLayout].
///
///
/// Override in subclasses that implement [performLayout] or [performResize].
/// Override in subclasses that implement [performLayout] or [performResize]
/// This method should return the [Size] that this [RenderBox] would like to
/// or when setting [sizedByParent] to true without overriding
/// be given the provided [BoxConstraints].
/// [performResize]. This method should return the [Size] that this
/// [RenderBox] would like to be given the provided [BoxConstraints].
///
///
/// The size returned by this method must match the [size] that the
/// The size returned by this method must match the [size] that the
/// [RenderBox] will compute for itself in [performLayout] (or
/// [RenderBox] will compute for itself in [performLayout] (or
...
...
packages/flutter/lib/src/rendering/object.dart
View file @
ad883695
...
@@ -1818,7 +1818,8 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
...
@@ -1818,7 +1818,8 @@ abstract class RenderObject extends AbstractNode with DiagnosticableTreeMixin im
///
///
/// Subclasses that return true must not change the dimensions of this render
/// Subclasses that return true must not change the dimensions of this render
/// object in [performLayout]. Instead, that work should be done by
/// object in [performLayout]. Instead, that work should be done by
/// [performResize].
/// [performResize] or - for subclasses of [RenderBox] - in
/// [RenderBox.computeDryLayout].
@protected
@protected
bool
get
sizedByParent
=>
false
;
bool
get
sizedByParent
=>
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment