diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart index de2b779bd03..b6197a2503a 100644 --- a/packages/flutter/lib/src/painting/text_painter.dart +++ b/packages/flutter/lib/src/painting/text_painter.dart @@ -818,7 +818,7 @@ class TextPainter { assert(!_needsLayout); // TODO(gspencergoog): remove the List-based code when the engine API // returns a TextRange instead of a List. - final dynamic boundary = _paragraph.getWordBoundary(position.offset); + final dynamic boundary = _paragraph.getWordBoundary(position); if (boundary is List) { final List indices = boundary; return TextRange(start: indices[0], end: indices[1]);