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
1a05b696
Commit
1a05b696
authored
May 27, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc update (#4234)
parent
f544abd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+17
-9
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
1a05b696
...
...
@@ -486,15 +486,16 @@ class Padding extends SingleChildRenderObjectWidget {
/// and the corresponding size factor is null then the widget will match its
/// child's size in that dimension. If a size factor is non-null then the
/// corresponding dimension of this widget will be the product of the child's
/// dimension and the size factor. For example if widthFactor is
0.5
then
/// the width of this widget will always be
half of the
child's width.
/// dimension and the size factor. For example if widthFactor is
2.0
then
/// the width of this widget will always be
twice its
child's width.
///
/// See also:
///
/// * [CustomSingleChildLayout]
/// * [Center] (which is the same as [Align] but with the [alignment] always
/// set to [FractionalOffset.center])
/// * [FractionallySizedBox] which sizes its child based on its own size.
/// * [FractionallySizedBox] (which sizes its child based on a fraction of its own
/// size and positions the child according to a [FractionalOffset] value)
class
Align
extends
SingleChildRenderObjectWidget
{
/// Creates an alignment widget.
///
...
...
@@ -574,7 +575,10 @@ class Center extends Align {
/// See also:
///
/// * [SingleChildLayoutDelegate]
/// * [Align] (which positions a single child according to a [FractionalOffset])
/// * [Align] (which sizes itself based on its child's size and positions
/// the child according to a [FractionalOffset] value)
/// * [FractionallySizedBox] (which sizes its child based on a fraction of its own
/// size and positions the child according to a [FractionalOffset] value)
/// * [CustomMultiChildLayout] (which uses a delegate to position multiple
/// children)
class
CustomSingleChildLayout
extends
SingleChildRenderObjectWidget
{
...
...
@@ -602,6 +606,8 @@ class CustomSingleChildLayout extends SingleChildRenderObjectWidget {
}
/// Metadata for identifying children in a [CustomMultiChildLayout].
/// The [MultiChildLayoutDelegate] hasChild, layoutChild, and positionChild
/// methods use these identifiers.
class
LayoutId
extends
ParentDataWidget
<
CustomMultiChildLayout
>
{
/// Marks a child with a layout identifier.
///
...
...
@@ -649,7 +655,7 @@ const List<Widget> _emptyWidgetList = const <Widget>[];
/// See also:
///
/// * [MultiChildLayoutDelegate]
/// * [CustomSingleChildLayout]
/// * [CustomSingleChildLayout]
(which defers the layout of its single child to a delegate)
/// * [Stack]
/// * [Flow]
class
CustomMultiChildLayout
extends
MultiChildRenderObjectWidget
{
...
...
@@ -750,11 +756,12 @@ class ConstrainedBox extends SingleChildRenderObjectWidget {
}
}
///
An overflow box that s
izes its child to a fraction of the total available space.
///
S
izes its child to a fraction of the total available space.
/// For more details about the layout algorithm, see [RenderFractionallySizedOverflowBox].
///
/// See also:
/// * [Align] which can size itself based on its child's size.
/// * [Align] (which sizes itself based on its child's size and positions
/// the child according to a [FractionalOffset] value)
/// * [OverflowBox]
class
FractionallySizedBox
extends
SingleChildRenderObjectWidget
{
FractionallySizedBox
({
...
...
@@ -773,7 +780,7 @@ class FractionallySizedBox extends SingleChildRenderObjectWidget {
/// incoming width constraint multipled by this factor.
final
double
widthFactor
;
/// If non-null, the fraction of the incoming height
to give
to the child.
/// If non-null, the fraction of the incoming height
given
to the child.
///
/// If non-null, the child is given a tight height constraint that is the max
/// incoming height constraint multipled by this factor.
...
...
@@ -1361,7 +1368,8 @@ abstract class StackRenderObjectWidgetBase extends MultiChildRenderObjectWidget
/// See also:
///
/// * [Flow]
/// * [Align] (which positions a single child according to a [FractionalOffset])
/// * [Align] (which sizes itself based on its child's size and positions
/// the child according to a [FractionalOffset] value)
/// * [CustomSingleChildLayout]
/// * [CustomMultiChildLayout]
class
Stack
extends
StackRenderObjectWidgetBase
{
...
...
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