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
5d078bad
Unverified
Commit
5d078bad
authored
Oct 17, 2022
by
Tzvi Melamed
Committed by
GitHub
Oct 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docs] Clarify that Flex does not wrap (#113404)
parent
1b4800c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+5
-0
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
5d078bad
...
...
@@ -4384,6 +4384,10 @@ class PositionedDirectional extends StatelessWidget {
/// you have some widgets and want them to be able to scroll if there is
/// insufficient room, consider using a [ListView].
///
/// The [Flex] widget does not allow its children to wrap across multiple
/// horizontal or vertical runs. For a widget that allows its children to wrap,
/// consider using the [Wrap] widget instead of [Flex].
///
/// If you only have one child, then rather than using [Flex], [Row], or
/// [Column], consider using [Align] or [Center] to position the child.
///
...
...
@@ -4433,6 +4437,7 @@ class PositionedDirectional extends StatelessWidget {
/// * [Flexible], to indicate children that should share the remaining room.
/// * [Spacer], a widget that takes up space proportional to its flex value.
/// that may be sized smaller (leaving some remaining room unused).
/// * [Wrap], for a widget that allows its children to wrap over multiple _runs_.
/// * The [catalog of layout widgets](https://flutter.dev/widgets/layout/).
class
Flex
extends
MultiChildRenderObjectWidget
{
/// Creates a flex 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