Change "Unicode scalar values" to "Unicode grapheme clusters" in maxLength docs (#106275)

This commit is contained in:
olof-dev
2022-08-16 23:55:12 +02:00
committed by GitHub
parent 4739c08f7e
commit 89e88f89a3
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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