From 89e88f89a3c2feaba85da9146767e61f5d529932 Mon Sep 17 00:00:00 2001 From: olof-dev <66305960+olof-dev@users.noreply.github.com> Date: Tue, 16 Aug 2022 23:55:12 +0200 Subject: [PATCH] Change "Unicode scalar values" to "Unicode grapheme clusters" in maxLength docs (#106275) --- packages/flutter/lib/src/cupertino/text_field.dart | 4 ++-- packages/flutter/lib/src/material/text_field.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/text_field.dart b/packages/flutter/lib/src/cupertino/text_field.dart index c155223edc..82028a3bb2 100644 --- a/packages/flutter/lib/src/cupertino/text_field.dart +++ b/packages/flutter/lib/src/cupertino/text_field.dart @@ -651,8 +651,8 @@ class CupertinoTextField extends StatefulWidget { /// {@macro flutter.widgets.editableText.expands} final bool expands; - /// The maximum number of characters (Unicode scalar values) to allow in the - /// text field. + /// The maximum number of characters (Unicode grapheme clusters) to allow in + /// the text field. /// /// After [maxLength] characters have been input, additional input /// is ignored, unless [maxLengthEnforcement] is set to diff --git a/packages/flutter/lib/src/material/text_field.dart b/packages/flutter/lib/src/material/text_field.dart index 1a3630864c..aaa29a7e27 100644 --- a/packages/flutter/lib/src/material/text_field.dart +++ b/packages/flutter/lib/src/material/text_field.dart @@ -543,8 +543,8 @@ class TextField extends StatefulWidget { /// part of the character counter is shown. static const int noMaxLength = -1; - /// The maximum number of characters (Unicode scalar values) to allow in the - /// text field. + /// The maximum number of characters (Unicode grapheme clusters) to allow in + /// the text field. /// /// If set, a character counter will be displayed below the /// field showing how many characters have been entered. If set to a number