File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ class _RenderScaledInlineWidget extends RenderBox with RenderObjectWithChildMixi
385
385
Size computeDryLayout (BoxConstraints constraints) {
386
386
assert (! constraints.hasBoundedHeight);
387
387
final Size unscaledSize = child? .computeDryLayout (BoxConstraints (maxWidth: constraints.maxWidth / scale)) ?? Size .zero;
388
- return unscaledSize * scale;
388
+ return constraints. constrain ( unscaledSize * scale) ;
389
389
}
390
390
391
391
@override
Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ void main() {
273
273
textDirection: TextDirection .ltr,
274
274
child: Center (
275
275
child: SizedBox (
276
- width: 100.3 ,
277
- child: Text .rich (WidgetSpan (child: Row ()), textScaleFactor: 0.3 ),
276
+ width: 502.5454545454545 ,
277
+ child: Text .rich (WidgetSpan (child: Row ()), textScaleFactor: 0.95 ),
278
278
),
279
279
),
280
280
),
You can’t perform that action at this time.
0 commit comments