File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ class _RenderScaledInlineWidget extends RenderBox with RenderObjectWithChildMixi
362362 Size computeDryLayout (BoxConstraints constraints) {
363363 assert (! constraints.hasBoundedHeight);
364364 final Size unscaledSize = child? .computeDryLayout (BoxConstraints (maxWidth: constraints.maxWidth / scale)) ?? Size .zero;
365- return unscaledSize * scale;
365+ return constraints. constrain ( unscaledSize * scale) ;
366366 }
367367
368368 @override
Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ void main() {
273273 textDirection: TextDirection .ltr,
274274 child: Center (
275275 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 ),
278278 ),
279279 ),
280280 ),
You can’t perform that action at this time.
0 commit comments