@@ -54,6 +54,32 @@ abstract class AlignmentGeometry {
5454 /// * [Alignment.topRight] , which is the same thing.
5555 static const AlignmentGeometry topRight = Alignment .topRight;
5656
57+ /// The top corner on the "start" edge.
58+ ///
59+ /// {@template flutter.painting.alignment.directional.start}
60+ /// This can be used to indicate an offset from the left in [TextDirection.ltr]
61+ /// text and an offset from the right in [TextDirection.rtl] text without having
62+ /// to be aware of the current text direction.
63+ /// {@endtemplate}
64+ ///
65+ /// See also:
66+ ///
67+ /// * [AlignmentDirectional.topStart] , which is the same thing.
68+ static const AlignmentGeometry topStart = AlignmentDirectional .topStart;
69+
70+ /// The top corner on the "end" edge.
71+ ///
72+ /// {@template flutter.painting.alignment.directional.end}
73+ /// This can be used to indicate an offset from the right in [TextDirection.ltr]
74+ /// text and an offset from the left in [TextDirection.rtl] text without having
75+ /// to be aware of the current text direction.
76+ /// {@endtemplate}
77+ ///
78+ /// See also:
79+ ///
80+ /// * [AlignmentDirectional.topEnd] , which is the same thing.
81+ static const AlignmentGeometry topEnd = AlignmentDirectional .topEnd;
82+
5783 /// The center point along the left edge.
5884 ///
5985 /// See also:
@@ -75,6 +101,24 @@ abstract class AlignmentGeometry {
75101 /// * [Alignment.centerRight] , which is the same thing.
76102 static const AlignmentGeometry centerRight = Alignment .centerRight;
77103
104+ /// The center point along the "start" edge.
105+ ///
106+ /// {@macro flutter.painting.alignment.directional.start}
107+ ///
108+ /// See also:
109+ ///
110+ /// * [AlignmentDirectional.centerStart] , which is the same thing.
111+ static const AlignmentGeometry centerStart = AlignmentDirectional .centerStart;
112+
113+ /// The center point along the "end" edge.
114+ ///
115+ /// {@macro flutter.painting.alignment.directional.end}
116+ ///
117+ /// See also:
118+ ///
119+ /// * [AlignmentDirectional.centerEnd] , which is the same thing.
120+ static const AlignmentGeometry centerEnd = AlignmentDirectional .centerEnd;
121+
78122 /// The bottom left corner.
79123 ///
80124 /// See also:
@@ -96,6 +140,24 @@ abstract class AlignmentGeometry {
96140 /// * [Alignment.bottomRight] , which is the same thing.
97141 static const AlignmentGeometry bottomRight = Alignment .bottomRight;
98142
143+ /// The bottom corner on the "start" edge.
144+ ///
145+ /// {@macro flutter.painting.alignment.directional.start}
146+ ///
147+ /// See also:
148+ ///
149+ /// * [AlignmentDirectional.bottomStart] , which is the same thing.
150+ static const AlignmentGeometry bottomStart = AlignmentDirectional .bottomStart;
151+
152+ /// The bottom corner on the "end" edge.
153+ ///
154+ /// {@macro flutter.painting.alignment.directional.end}
155+ ///
156+ /// See also:
157+ ///
158+ /// * [AlignmentDirectional.bottomEnd] , which is the same thing.
159+ static const AlignmentGeometry bottomEnd = AlignmentDirectional .bottomEnd;
160+
99161 double get _x;
100162
101163 double get _start;
0 commit comments