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
33daa2f9
Commit
33daa2f9
authored
Sep 14, 2017
by
Ian Hickson
Committed by
GitHub
Sep 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Direct people to the Directional variants more aggressively. (#12075)
parent
18141861
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
edge_insets.dart
packages/flutter/lib/src/painting/edge_insets.dart
+7
-0
fractional_offset.dart
packages/flutter/lib/src/painting/fractional_offset.dart
+7
-0
No files found.
packages/flutter/lib/src/painting/edge_insets.dart
View file @
33daa2f9
...
...
@@ -264,6 +264,13 @@ abstract class EdgeInsetsGeometry {
/// Typically used for an offset from each of the four sides of a box. For
/// example, the padding inside a box can be represented using this class.
///
/// The [EdgeInsets] class specifies offsets in terms of visual edges, left,
/// top, right, and bottom. These values are not affected by the
/// [TextDirection]. To support both left-to-right and right-to-left layouts,
/// consider using [EdgeInsetsDirectional], which is expressed in terms of
/// _start_, top, _end_, and bottom, where start and end are resolved in terms
/// of a [TextDirection] (typically obtained from the ambient [Directionality]).
///
/// ## Sample code
///
/// Here are some examples of how to create [EdgeInsets] instances:
...
...
packages/flutter/lib/src/painting/fractional_offset.dart
View file @
33daa2f9
...
...
@@ -180,6 +180,13 @@ abstract class FractionalOffsetGeometry {
/// `FractionalOffset(0.5, 2.0)` represents a point half way across the [Size],
/// below the bottom of the rectangle by the height of the [Size].
///
/// The [FractionalOffset] class specifies offsets in terms of a distance from
/// the top left, regardless of the [TextDirection]. To support both
/// left-to-right and right-to-left layouts, consider using
/// [FractionalOffsetDirectional], which is expressed in terms of an offset from
/// the leading edge, which is then resolved in terms of a [TextDirection]
/// (typically obtained from the ambient [Directionality]).
///
/// A variety of widgets use [FractionalOffset] in their configuration, most
/// notably:
///
...
...
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