File tree Expand file tree Collapse file tree 3 files changed +348
-330
lines changed Expand file tree Collapse file tree 3 files changed +348
-330
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class ExampleState extends State<Example> {
130
130
zIndex : 100,
131
131
translate : Offset(x, y),
132
132
clickPadding : const EdgeInsets.all(30),
133
- translateDependency : true,
133
+ translateConstraint : true,
134
134
child : GestureDetector(
135
135
child : Container(
136
136
color : Colors.pink,
@@ -184,6 +184,26 @@ class ExampleState extends State<Example> {
184
184
alignment : Alignment.center,
185
185
child : const Text('child[7] pinned to the top right'),
186
186
),
187
+ ),
188
+ const Constrained(
189
+ id : ' box9' ,
190
+ width : CL.wrapContent,
191
+ height : CL.wrapContent,
192
+ baselineToBaseline : ' box7' ,
193
+
194
+ /// when setting baseline alignment, height must be wrap_content or fixed size
195
+ /// other vertical constraints will be ignored
196
+ /// Warning :
197
+ /// Due to a bug in the flutter framework, baseline alignment may not take effect in debug mode
198
+ /// See https://github.com/flutter/flutter/issues/101179
199
+
200
+ leftToLeft : ' box7' ,
201
+ child : Text(
202
+ ' box9 baseline to box7' ,
203
+ style : TextStyle(
204
+ color : Colors.white,
205
+ ),
206
+ ),
187
207
)
188
208
],
189
209
),
You can’t perform that action at this time.
0 commit comments