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
385385 Size computeDryLayout (BoxConstraints constraints) {
386386 assert (! constraints.hasBoundedHeight);
387387 final Size unscaledSize = child? .computeDryLayout (BoxConstraints (maxWidth: constraints.maxWidth / scale)) ?? Size .zero;
388- return unscaledSize * scale;
388+ return constraints. constrain ( unscaledSize * scale) ;
389389 }
390390
391391 @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