Direct people to the Directional variants more aggressively. (#12075)
This commit is contained in:
parent
1814186150
commit
33daa2f982
@ -264,6 +264,13 @@ abstract class EdgeInsetsGeometry {
|
|||||||
/// Typically used for an offset from each of the four sides of a box. For
|
/// 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.
|
/// 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
|
/// ## Sample code
|
||||||
///
|
///
|
||||||
/// Here are some examples of how to create [EdgeInsets] instances:
|
/// Here are some examples of how to create [EdgeInsets] instances:
|
||||||
|
@ -180,6 +180,13 @@ abstract class FractionalOffsetGeometry {
|
|||||||
/// `FractionalOffset(0.5, 2.0)` represents a point half way across the [Size],
|
/// `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].
|
/// 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
|
/// A variety of widgets use [FractionalOffset] in their configuration, most
|
||||||
/// notably:
|
/// notably:
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user