@@ -14,7 +14,7 @@ class ExtendedRichText extends _RichText {
1414 super .textDirection,
1515 super .softWrap = true ,
1616 super .overflow = TextOverflow .clip,
17- super .textScaleFactor = 1.0 ,
17+ super .textScaler = TextScaler .noScaling ,
1818 super .maxLines,
1919 super .locale,
2020 super .strutStyle,
@@ -25,7 +25,7 @@ class ExtendedRichText extends _RichText {
2525 this .overflowWidget,
2626 this .canSelectPlaceholderSpan = true ,
2727 }) : super (
28- children: _extractChildren (text, overflowWidget, textScaleFactor ),
28+ children: _extractChildren (text, overflowWidget, textScaler ),
2929 );
3030
3131 final TextOverflowWidget ? overflowWidget;
@@ -42,7 +42,7 @@ class ExtendedRichText extends _RichText {
4242 textDirection: textDirection ?? Directionality .of (context),
4343 softWrap: softWrap,
4444 overflow: overflow,
45- textScaleFactor : textScaleFactor ,
45+ textScaler : textScaler ,
4646 maxLines: maxLines,
4747 strutStyle: strutStyle,
4848 textWidthBasis: textWidthBasis,
@@ -65,7 +65,7 @@ class ExtendedRichText extends _RichText {
6565 ..textDirection = textDirection ?? Directionality .of (context)
6666 ..softWrap = softWrap
6767 ..overflow = overflow
68- ..textScaleFactor = textScaleFactor
68+ ..textScaler = textScaler
6969 ..maxLines = maxLines
7070 ..strutStyle = strutStyle
7171 ..textWidthBasis = textWidthBasis
@@ -77,21 +77,21 @@ class ExtendedRichText extends _RichText {
7777 ..canSelectPlaceholderSpan = canSelectPlaceholderSpan;
7878 }
7979
80- // Traverses the InlineSpan tree and depth-first collects the list of
81- // child widgets that are created in WidgetSpans.
80+ /// Traverses the InlineSpan tree and depth-first collects the list of
81+ /// child widgets that are created in WidgetSpans.
82+ // TODO(zmtzawqlp): _extractChildren has replace with WidgetSpan.extractFromInlineSpan
8283 static List <Widget > _extractChildren (
8384 InlineSpan span,
8485 TextOverflowWidget ? overflowWidget,
85- double textScaleFactor ,
86+ TextScaler textScaler ,
8687 ) {
87- int index = 0 ;
8888 final List <Widget > result = < Widget > [
89- ...WidgetSpan .extractFromInlineSpan (span, textScaleFactor )
89+ ...WidgetSpan .extractFromInlineSpan (span, textScaler )
9090 ];
9191
9292 if (overflowWidget != null ) {
9393 result.add (Semantics (
94- tagForChildren: PlaceholderSpanIndexSemanticsTag (index ++ ),
94+ tagForChildren: PlaceholderSpanIndexSemanticsTag (result.length ),
9595 child: overflowWidget,
9696 ));
9797 }
0 commit comments