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
e9edf7a0
Commit
e9edf7a0
authored
Jun 16, 2016
by
Ian Hickson
Committed by
GitHub
Jun 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update LayoutBuilder docs a bit (#4593)
parent
9fe76171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
layout_builder.dart
packages/flutter/lib/src/widgets/layout_builder.dart
+10
-0
No files found.
packages/flutter/lib/src/widgets/layout_builder.dart
View file @
e9edf7a0
...
...
@@ -18,6 +18,16 @@ typedef Widget LayoutWidgetBuilder(BuildContext context, BoxConstraints constrai
/// is useful when the parent constrains the child's size and doesn't depend on
/// the child's intrinsic size. The LayoutBuilder's final size will match its
/// child's size.
///
/// If the child should be smaller than the parent, consider wrapping the child
/// in an [Align] widget. If the child might want to be bigger, consider
/// wrapping it in a [ScrollableViewport].
///
/// See also:
///
/// * [Builder], which calls a `builder` function at build time.
/// * [StatefulBuilder], which passes its `builder` function a `setState` callback.
/// * [CustomSingleChildLayout], which positions its child during layout.
class
LayoutBuilder
extends
RenderObjectWidget
{
/// Creates a widget that defers its building until layout.
///
...
...
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